diff options
author | Alexander Kabui | 2021-03-31 22:31:01 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-03-31 22:31:01 +0300 |
commit | f065ea860f8001942bbf7c61eb49e515d358d2eb (patch) | |
tree | 24d4882482e7bf605547e2d934a6835bb11fe4b8 /gn3/experimental_db.py | |
parent | f6c6851504f14a1a163b6eeb5e3653a5ec3f5ceb (diff) | |
download | genenetwork3-f065ea860f8001942bbf7c61eb49e515d358d2eb.tar.gz |
add temp_db setup and integration tests
Diffstat (limited to 'gn3/experimental_db.py')
-rw-r--r-- | gn3/experimental_db.py | 11 |
1 files changed, 11 insertions, 0 deletions
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) |