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
from database_helper.database.async_db import AsyncDatabase
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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85d00e65ec5de92f786d7eb2d7ec683fe8b161bd60c54e92c4e1e91340c71d56 |
|
MD5 | e969cad66f0564f03eb5018ff535d7a8 |
|
BLAKE2b-256 | a16b4db17afec009c192e8332fa487ef6caffcf2127930afaf1a9f8474228846 |
Close
Hashes for locobuzz_python_orm-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95a21ef9ea1acfaaa0b2b14728bb145f258a14d0357243773d3b1c235fcef26e |
|
MD5 | 55d135be9b0ea18c61ed95554dcb2a69 |
|
BLAKE2b-256 | 55cee16fcb38da5a3bc669584660842fc7ea76843a799ece3939d38435b16d55 |