You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
conn.sql(f"CREATE TABLE {table} AS select * FROM __other.{table}")
conn.sql(f"DETACH __other")
conn.close()
end_time=time.perf_counter()
execution_time= (end_time-start_time) *1000
This seems overly complicated. What about something like
# Attach the DuckDB database (named)
conn.execute(f"ATTACH '{duckdb_file}' AS duck_db;")
# Attach the SQLITE database (named)
conn.execute(f"ATTACH '{sqlite_db}' as sqlite_db;")
conn.execute("COPY FROM DATABASE sqlite_db TO duck_db;")
The text was updated successfully, but these errors were encountered:
sqlite2duckdb/sqlite2duckdb/sqlite_to_duckdb.py
Lines 32 to 46 in c318ead
This seems overly complicated. What about something like
The text was updated successfully, but these errors were encountered: