(connection, interface_id, arg:Arg, order)
| 67 | |
| 68 | |
| 69 | def insert_arg(connection, interface_id, arg:Arg, order): |
| 70 | try: |
| 71 | cursor = connection.cursor() |
| 72 | insert_query = """ |
| 73 | INSERT INTO args (interface_id, ordering, type, info, constr) |
| 74 | VALUES (?,?,?,?,?) |
| 75 | """ |
| 76 | cursor.execute(insert_query, (interface_id, order, arg.argtype, "", "")) |
| 77 | connection.commit() |
| 78 | arg_id = cursor.lastrowid |
| 79 | cursor.close() |
| 80 | return arg_id |
| 81 | except Exception as e: |
| 82 | logging.error(f'[BINDERDB] Failed inserting arg {str(e)}, {traceback.format_exc()}') |
| 83 | print(f'[BINDERDB] Failed inserting arg {str(e)}, {traceback.format_exc()}') |
| 84 | |
| 85 | |
| 86 | def insert_update_arg(connection, interface_id, arg:Arg, order): |
no test coverage detected