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

Uploaded Source

Built Distribution

sqlbag-0.1.1510721564-py2.py3-none-any.whl (15.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for sqlbag-0.1.1510721564.tar.gz
Algorithm Hash digest
SHA256 7ccb5d48f510a9e789332fca549472f6bef5637f491ef3449bfe74338948d129
MD5 353a1b09046cc9c0a2360d3459293443
BLAKE2b-256 d4208668a25569d41727f8f0e418321e0d069a5ac52c9353d71d0a1a9fa0da4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sqlbag-0.1.1510721564-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d3c7e960adc342e0de3cd054dfbd600bbcaca5c09e72387d69c656339b3db599
MD5 b6613504ccf06b7a725d02ef8b6279a9
BLAKE2b-256 b0b8e8178f7598b51e2ccc5f6c9621aa6a9a182752c5ef2e2f5a553b69003510

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