Python Async SQL Engines
Project description
PySQLXEngine
PySQLXEngine, a minimalist asynchronous SQL engine
Documentation: https://carlos-rian.github.io/pysqlx-engine/
Source Code: https://github.com/carlos-rian/pysqlx-engine
PySQLXEngine supports the option of sending raw sql to your database.
The PySQLXEngine is a minimalist Async SQL engine. Currently this lib only supports asynchronous programming, you need to code your code using await
in all methods.
Database Support:
SQLite
PostgreSQL
MySQL
Microsoft SQL Server
OS Support:
Linux
Windows
Experimental! Unit tests were not run on Windows.
Installation
PIP
$ pip install pysqlx-engine
Poetry
$ poetry add pysqlx-engine
Example
import asyncio
from sqlx_engine import SQLXEngine
uri = "file:./db.db"
db = SQLXEngine(provider="sqlite", uri=uri)
async def main():
await db.connect()
rows = await db.query(query="select 1 as number")
print(rows)
# output: [ BaseRow(number=1) ]
asyncio.run(main())
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
pysqlx-engine-0.1.3.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for pysqlx_engine-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32e6a72e192e6b0322f58f490467af494008e6503f6002460b1f0a3c990c48b2 |
|
MD5 | 963f018d10e463fefeb3bf62f7facb67 |
|
BLAKE2b-256 | 3b0dc35fa8e5b1da769360dceea2c54a758f5be49a00d3c2d00e4d9757d8818f |