SQLAlchemy dialect for the sqlean.py SQLite wrapper
Project description
sqlean-driver
A SQLAlchemy driver for sqlean.py
.
Table of Contents
Installation
pip install sqlean-driver
Usage
from sqlalchemy import create_engine, text
engine = create_engine("sqlite+sqlean:///:memory:?extensions=all")
with engine.connect() as conn:
result = conn.execute(text("SELECT ipfamily('192.168.1.1')"))
print(result.scalar()) # 4
Extensions
By default, sqlean.py
disables all SQLite extensions. To enable all of them, pass extensions=all
as a query parameter to the connection string. Or use a comma-separated list of extensions to enable only some of them, e.g. extensions=ipaddr,crypto
.
License
sqlean-driver
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sqlean_driver-0.0.1a1.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for sqlean_driver-0.0.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9bc864f3fcc7a94dc3c9bc3da0684875ade3d113ef8f56ff2bf76c4cd82b8d7 |
|
MD5 | 23bb0e489cbea458fa162f88fc1405df |
|
BLAKE2b-256 | 1c55c5bd25e262fef562119da94cf405df29dd5df6300dbe158ed429c9196c05 |