Python Async SQL Engines
Project description
PySQLXEngine
PySQLXEngine, a minimalist 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 async and sync programming.
Database Support:
SQLite
PostgreSQL
MySQL
Microsoft SQL Server
OS Support:
Linux
MacOS
Windows
Installation
PIP
$ pip install pysqlx-engine
Poetry
$ poetry add pysqlx-engine
Async 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.22.tar.gz
(19.0 kB
view hashes)
Built Distribution
Close
Hashes for pysqlx_engine-0.1.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d478d1b215c970aed34b891c86f3e7b15da70e1d7349028210a1897ded8fa182 |
|
MD5 | 7b9a957aec4cf37f8c877900eae7d676 |
|
BLAKE2b-256 | c515507ba76a7e7dab437d9a163eaf2268985fd8017cbfebf7a8dfc8cebc5e7d |