Python database orm functions for Locobuzz, common code that is required in all projects
Project description
Database ORM package
This package provide a way to implement the ORM using the sync and aysnc way and easily used with the
Installation
Install the package using pip:
pip install locobuzz-python-orm
pip install locobuzz-python-orm[dataframe]
Usage
Basic Usage
connection_string = f"mssql+aioodbc://{username}:{encoded_password}@{host}/{database}?driver=ODBC+Driver+17+for+SQL+Server"
db = AsyncDatabase(connection_string, min_connections=1, max_connections=1)
query = text("SELECT * FROM mstCategories")
async with db as database:
result = await database.query_tuples(query)
print(result) # List of tuples output
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
Built Distribution
Close
Hashes for locobuzz_python_orm-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 316286acbd42b148aec264c9d4729d68478ad570ce0d8eecf8130a5a5f2fa640 |
|
MD5 | 4c1ac7e85983624b5d855c7d4c24e22a |
|
BLAKE2b-256 | b3f2c3f16e971b64d7b5f8018adfd893435c01655aac4d868583c469686f8d0f |
Close
Hashes for locobuzz_python_orm-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14bf175297af3b269f25394aeef78329b7b393a589df743890a9273748bc3e42 |
|
MD5 | 820df79b6629514f7ed038bc574f0214 |
|
BLAKE2b-256 | ae9f7c85423a6474e9006d56cc71c8bf8fc5bf8f1bd0783e089951eef44b3b66 |