Skip to main content
https://travis-ci.org/elemepi/takumi-sqlalchemy.svg?branch=master

Sqlachmey utilities for Takumi.

Add Settings

The setting DB_SETTINGS must be defined in settings module.

DB_SETTINGS = {
    'test_db': {'dsn': 'sqlite:///:memory:'}
}

Init App

It’s not required to init app before using db. But it’s recommended to init app first:

db.init_app(app)

Query Database

The object db should be used to query database. And the only preferred way to query database is to use the context manager:

with db['test_db'] as session:
    session.query(User).all()

# or to use a different binding
with db['test_db'].using_bind('master') as s:
    s.query(User).all()

# or to tag the query
with db['test_db'].tag(hello=123, world=90) as s:
    s.query(User).all()

Metadata

Release files for takumi-sqlalchemy 0.1.5

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

Source distribution (sdist)

Source distribution for takumi-sqlalchemy 0.1.5
File Size Uploaded Provenance
takumi_sqlalchemy-0.1.5.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for takumi-sqlalchemy 0.1.5
File Interpreter ABI Platform
takumi_sqlalchemy-0.1.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 11.2 kB

Release files / takumi_sqlalchemy-0.1.5.tar.gz

Download URL takumi_sqlalchemy-0.1.5.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
13999da292f98a2cfd2b09a0c6130c21ef571ba8f635f22b1f93b5600ff46a07
BLAKE2b-256 checksum
How to use checksums
04ca3eadf58b5a5aef7d16ce171e32a00a8706aa0de90993c845c4c623044925
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / takumi_sqlalchemy-0.1.5-py2.py3-none-any.whl

Download URL takumi_sqlalchemy-0.1.5-py2.py3-none-any.whl
Size 6.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b63e41657513066530a9c4803b0a586216d702ccb987db9da7b3cf04e9afafb0
BLAKE2b-256 checksum
How to use checksums
fe28d2aca2fce79a35b1cd063f551aeb3e988a090acd980dd88e52fe7295386b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for takumi-sqlalchemy 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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