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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 505db5f30e8cad620916b11fd0480b4cda3a167ad6a0fb56509346a40f552874 |
|
MD5 | 4168dec9a28ca8965eabaf31ae3a4dba |
|
BLAKE2b-256 | 1678c9b76016e92c49f58e37062aa1e3355583d12fd63ace231d0f12b45480ff |
Close
Hashes for locobuzz_python_orm-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95762c74c566476e1bdc50951a2d73bf1a86f23b651027ee9f780663efd2abf2 |
|
MD5 | 5daf7ccb9e886254592de7942051223c |
|
BLAKE2b-256 | 772f223039e2a8a21d241f3af805df2372770ac04590fb429662727df66f634a |