Skip to main content

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


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)

Uploaded Source

Built Distribution

bangpg-0.1.1-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page