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.1530756414.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

sqlbag-0.1.1530756414-py2.py3-none-any.whl (13.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for sqlbag-0.1.1530756414.tar.gz
Algorithm Hash digest
SHA256 6a8481a8e39643525b59d6a2f18d6fff81e9d76fcde7472acc5308938ef851ee
MD5 1b8d414807a7d8b754bd22fd8cd1b25f
BLAKE2b-256 993171b6a9bf5c5a8e4fb25b20aabba0a2384d19b70499e8c12f0b54af1b12e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sqlbag-0.1.1530756414-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d6ae5e9eca0af302d93f622c34dc792e7e9562a3d51fad95da83fce51707a7ef
MD5 f03cd7c4dba14a95d7328fdaaf56e680
BLAKE2b-256 bee58fb636b241dee76734918deb55ea6d82c1bb548e082051438f57e128bad3

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