Functions to handle MySQL and Oracle database connections and queries
username, password, host IP, database schema
database connection object
Opens a connection to the given database
connection object, query statement
result
= dictionary containing column names and results
result['columns']
= array of result column names
result['data']
= array of tuples of results
result['data'][0]
= first result from query as a tuple
Pass in a connection and an arbitrary SQL query, receive the results of that query for parsing
connection object, SQL update/insert statement, data to be inserted/updated as a list of lists
none
Executes the update/insert statement with the provided data on the database associated with the given connection object
database connection object
none
Closes a given database connection