aboutsummaryrefslogtreecommitdiff
path: root/gn3/experimental_db.py
blob: c928265f55389ca64e01c8ec7e7b40523d394270 (plain)
1
2
3
4
5
6
7
8
9
10
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)