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 use await
in all methods.
Database Support:
SQLite
PostgreSQL
MySQL
Microsoft SQL Server
OS Support:
Linux
MacOS
Windows
Installation
PIP
$ pip install pysqlx-engine
Poetry
$ poetry add pysqlx-engine
Example
- Create
main.py
file.
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)
asyncio.run(main())
- Run it
$ python3 main.py
[BaseRow(number=1)]
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.17.tar.gz
(16.4 kB
view hashes)
Built Distribution
Close
Hashes for pysqlx_engine-0.1.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b9f8caf72940cb4f3dc2465730e6517f9c7086f3bd0816050c2c8cfccfb6f6 |
|
MD5 | 203a75a530b6905f015134a5a1eb6c87 |
|
BLAKE2b-256 | ea03c25d66a1bba416bce9aee7648a5c0f380560fc353c6c1f7aab15082a6ae0 |