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

Uploaded Source

Built Distribution

sqlbag-0.1.1487916199-py2.py3-none-any.whl (13.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for sqlbag-0.1.1487916199.tar.gz
Algorithm Hash digest
SHA256 5f96f7af5899b185b4140604420e0538b38ea78f04ce106242056937506b5632
MD5 afa8a54ef2d04e5bcbf2055d71b56cca
BLAKE2b-256 5befab98cf3908be1dcd01c15eeffeb2c47f45d67f0ff61b85c197f8d0a16ccb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sqlbag-0.1.1487916199-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d1fd4a42d3a3583e74362a4e5c18c4dd88796491f50c0a8967441f7115d8db0b
MD5 3912200c74d89a0c7d51df9d4bed19b7
BLAKE2b-256 734d72ffbcf57e1813642b0ba300ac8c1e0251a186e1bbd79987bea15ccb848b

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