to_list¶
- getml.sqlite3.to_list(conn, query)[source]¶
Transforms a query or table into a list of lists. Returns a tuple which contains the column names and the actual data.
- Args:
- conn:
A sqlite3 connection created by
connect()
.- query (str):
The query used to get the table. You can also pass the name of the table, in which case the entire table will be imported.