This packeges implements a faster alternative `to_sql()` method for PostgreSQL that support COPY FROM.
Project description
Bang PG
As fast as a bullet
This packeges implements a faster alternative to_sql()
method for PostgreSQL that support COPY FROM
.
There are two ways to use it:
import bangpg
bangpg.to_sql(df, 'table', engine, if_exists='append', index=False)
import bangpg
df.to_sql('table', engine, if_exists='append', index=False, method=bangpg.psql_insert_copy)
references: https://pandas.pydata.org/docs/user_guide/io.html#io-sql-method
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bangpg-0.1.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
bangpg-0.1.1-py3-none-any.whl
(2.3 kB
view hashes)