Seeing ALL sql by Jam

16 views
Skip to first unread message

Drazen D. Babic

unread,
Mar 23, 2022, 12:46:12 AMMar 23
to Jam.py Users Mailing List
Hi all, 

looks like Andrew mentioned how to see all sql issued, adding here as placeholder:
Uncomment out in execute.py

def execute_select(cursor, db_module, command):
    # ~ print('')
    # ~ print(command)
    try:
        cursor.execute(command)
    except Exception as x:
        consts.app.log.exception(error_message(x))
        # ~ print('\nError: %s\n command: %s' % (str(x), command))
        raise
    return db_module.process_sql_result(cursor.fetchall())

Cheers
Reply all
Reply to author
Forward
0 new messages