blob: a07aeba13dd2e53b0b24ea661487b5e33bc46ce7 (
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("localhost", "kabui", "1234", "db_webqtl")
cursor = conn.cursor()
return (conn, cursor)
|