|
|
@ -59,6 +59,6 @@ with open(out_file_path, "w") as of:
|
|
|
|
cols += f'"{indices[i]}"'
|
|
|
|
cols += f'"{indices[i]}"'
|
|
|
|
vals += f'{wrap_types(values[i])}'
|
|
|
|
vals += f'{wrap_types(values[i])}'
|
|
|
|
# INSERT INTO $DB.$TABLE ($COL1, $COL2, ...) VALUES ($VAL1, $VAL2, ...)
|
|
|
|
# INSERT INTO $DB.$TABLE ($COL1, $COL2, ...) VALUES ($VAL1, $VAL2, ...)
|
|
|
|
of.write(f'INSERT INTO {db_table} ({cols}) VALUES ({vals})\n')
|
|
|
|
of.write(f'INSERT INTO {db_table} ({cols}) VALUES ({vals});\n')
|
|
|
|
count += 1
|
|
|
|
count += 1
|
|
|
|
print(f'Created {count} INSERT statements for sheet "{sheet}"\n')
|
|
|
|
print(f'Created {count} INSERT statements for sheet "{sheet}"\n')
|
|
|
|