print number of rows
This commit is contained in:
@@ -94,6 +94,7 @@ def insert_to_pg(query, data):
|
||||
cursor = get_postgres_cursor()
|
||||
connection = cursor.connection
|
||||
|
||||
print(f"Inserting {len(data)} rows...")
|
||||
for d in data:
|
||||
try:
|
||||
cursor.execute(query, d)
|
||||
|
||||
Reference in New Issue
Block a user