def get_SQL_connection(db_name, host_name, user_name, password): conn = Pylibdb.connect(dbname = db_name, hostname = host_name, username = user_name, psswd = password) cursor = conn.cursor() return(conn, cursor)
def get_SQL_connection(db_name, host_name, user_name, password): """ Start a connection to a database given usename, password """ conn = Pylibdb.connect(dbname=db_name, hostname=host_name, username=user_name, psswd=password) cursor = conn.cursor() return (conn, cursor)
def get_SQL_connection(db_name, host_name, user_name, password): """ Start a connection to a database given usename, password """ conn = Pylibdb.connect(dbname = db_name, hostname = host_name, username = user_name, psswd = password) cursor = conn.cursor() return(conn, cursor)
def get_SQL_connection(): conn = Pylibdb.connect() cursor = conn.cursor() return(conn, cursor)