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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 806b41dc94ac08aed8d8b9eb1e12aeb3adbd123a496c945e6022ee3a2ac068ff |
|
MD5 | 26e216b246ceb21fd1570bf2ce8a5b4b |
|
BLAKE2b-256 | 3e30d9a4b0a2e34657350b6d9ac40014a3c013deefd8f42ed88a57a66abb8c27 |
Close
Hashes for locobuzz_python_orm-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 050f54da985eb081e17570db6d1b2909f89e3a443f050739ceab3c6ecc39e47b |
|
MD5 | ccffd99bc5c4468b4a0812c6b3cd64d1 |
|
BLAKE2b-256 | b1fb8bc2734b85dda368336a188cc1fce969243779b5813dbb49e08f89f50b39 |