Unverified Commit 6c72e37d authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

log sql statements

parent eb7b0b02
Pipeline #16897 passed with stages
in 4 minutes and 15 seconds
......@@ -206,12 +206,14 @@ def _create_sql_stmt(table_name, record, fields):
def _create_entities_entry(record, mariadb_cursor):
fields = ['sig', 'uri', 'access', 'proto']
sql_stmt = _create_sql_stmt('entities', record, fields)
logging.info(sql_stmt)
mariadb_cursor.execute(sql_stmt)
def _create_metadata_entry(record, mariadb_cursor):
fields = ['sig', 'mimetype', 'height', 'width', 'duration', 'type']
sql_stmt = _create_sql_stmt('metadata', record, fields)
logging.info(sql_stmt)
mariadb_cursor.execute(sql_stmt)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment