print number of rows
This commit is contained in:
parent
dd7f622a67
commit
d93bd4bec1
1 changed files with 1 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ def insert_to_pg(query, data):
|
||||||
cursor = get_postgres_cursor()
|
cursor = get_postgres_cursor()
|
||||||
connection = cursor.connection
|
connection = cursor.connection
|
||||||
|
|
||||||
|
print(f"Inserting {len(data)} rows...")
|
||||||
for d in data:
|
for d in data:
|
||||||
try:
|
try:
|
||||||
cursor.execute(query, d)
|
cursor.execute(query, d)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue