Skip to main content

hey_pgsqlexec

A simple executable object for dumping SQL from files into a PostgreSQL database through psycopg2.

__doc__

PGSQLExec is a simple interface for dumping SQL into a PostgreSQL database, often from a file, and maybe getting some results out.

The usage is usually something like:

(hey_pgsqlexec.PGSQLExec(self.conn)
 .append_file('txt/check_append.sql', localizer=self._dl)
 .execute()
 .get_rows()[0][0])

Essentially, PGSQLExec is a minimal, chaining wrapper around the psycopg2 Connection and Cursor classes to make the common case of working with pre-written, static SQL files easier.

Release files for hey_pgsqlexec 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hey_pgsqlexec 1.0.2
File Size Uploaded
hey_pgsqlexec-1.0.2.tar.gz 3.9 kB Details

Release files / hey_pgsqlexec-1.0.2.tar.gz

Download URL hey_pgsqlexec-1.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3a53f30ce4300d7eb0ab32fc812a0f08609f8ecafafc769a1f38a28df6a69fb1
BLAKE2b-256 checksum
How to use checksums
03ac88edc15b1401ca38b36e4595a1c497c408db47daa7178591eba801fa46aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page