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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bb7bcecad58d04793bad6bf9c6ce4f6aa416c0d67a90fd05f79566692a8980d |
|
MD5 | 1c63ce56d077be6f3e32ad11466348ca |
|
BLAKE2b-256 | e26f18fcdeb8a7d2d886edb2463b141033fd726fc98f43d98556a7f2b74189b1 |
Close
Hashes for locobuzz_python_orm-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f62a122826d9f7f42564c1630f3ab2ad5c95f10ce2812abd53e8bc36ca789b3 |
|
MD5 | 10b91527442d5ca295c7b48146a31564 |
|
BLAKE2b-256 | 47bb22ae6ff592224bcfa042c747da447d20a5b39d77f0f28309fbdcb8947dc1 |