Exemplo n.º 1
0
def insert(**kwargs):
    query = build_insert_query(kwargs, table_name)
    values = get_value_tuple(kwargs)
    execute_statement((query, values))
    return execute_statement("select last_insert_rowid()")
Exemplo n.º 2
0
def insert_many(elo_rows):
    query = build_insert_query(elo_rows[0], table_name)
    values = []
    for row in elo_rows:
        values.append(get_value_tuple(row))
    execute_many(query, values)