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-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60589e22b6a040c0d2835bf73e1141eed66c8c46cb98c53a39f7c96ddbce6a0d |
|
MD5 | 68fe6959b5e4de72cbe62462d7b022d7 |
|
BLAKE2b-256 | cbbfc97e5fd1a8f6f598e22b011b78366d79885ea4a8b64c07de8e7dd38bc305 |
Close
Hashes for locobuzz_python_orm-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52b34a79d00b8451b6b202d646cb4807eba35ded7e8d63bf99328459235e1ab2 |
|
MD5 | b8cdf0a657ed4e2ca09453ddf57587af |
|
BLAKE2b-256 | 38e95cc3e58feb6651eb6a1f2bf96d6e61cec03f98bcad42c36aec8343e24cf5 |