Skip to main content

various snippets of SQL-related boilerplate

Project description

This is just a collection of handy code for doing database things.

What is in the box

Connections, flask setup, SQLAlchemy ORM helpers, temporary database setup and teardown (handy for integration tests).

Installation

Simply install with pip:

$ pip install sqlbag

If you want you can install the database drivers you need at the same time, by specifying one of the optional bundles.

If you’re using postgres, this installs sqlbag and psycopg2:

$ pip install sqlbag[pg]

If you’re installing MySQL/MariaDB then this installs pymysql as well:

$ pip install sqlbag[maria]

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

sqlbag-0.1.1481109818.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

sqlbag-0.1.1481109818-py2.py3-none-any.whl (13.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sqlbag-0.1.1481109818.tar.gz.

File metadata

File hashes

Hashes for sqlbag-0.1.1481109818.tar.gz
Algorithm Hash digest
SHA256 dd0cad69f41a7c49618395ecdb7adbbba04c9b258c690f8c2989b701fe487f64
MD5 0978f5839aa49546091c0715589a35c7
BLAKE2b-256 547b4092efbae57d5191c085da5a6ee23e09cf32ffc13122ea2e7a124d5bd42d

See more details on using hashes here.

File details

Details for the file sqlbag-0.1.1481109818-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sqlbag-0.1.1481109818-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0f98257242f35fbc31bfcaa75be9abef63178ceb311201d292176c15c6d69a05
MD5 782e7dff715053165eed3ff8cd6cdcdd
BLAKE2b-256 0617ebbb5d635e627fc3ca7b9c61200ae2de6caaf58d4d2eb5fe5f1489b580ed

See more details on using hashes here.

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