From f065ea860f8001942bbf7c61eb49e515d358d2eb Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Wed, 31 Mar 2021 22:31:01 +0300 Subject: add temp_db setup and integration tests --- gn3/experimental_db.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 gn3/experimental_db.py (limited to 'gn3/experimental_db.py') diff --git a/gn3/experimental_db.py b/gn3/experimental_db.py new file mode 100644 index 0000000..c928265 --- /dev/null +++ b/gn3/experimental_db.py @@ -0,0 +1,11 @@ +"""this function contains experimental db staff""" +from typing import Tuple +import MySQLdb as mdb # type: ignore + + +def database_connector()->Tuple: + """function to create db connector""" + conn = mdb.connect("local", "kabui", "1234", "db_webqtl") + cursor = conn.cursor() + + return (conn, cursor) -- cgit v1.2.3