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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | accdd17a493df00260a61ed6ff9769ec83533cad847237f6c666e637dd6ea4a2 |
|
MD5 | 484d28e85425abf7365ab8bcda61946f |
|
BLAKE2b-256 | 1a5d4cf78830206c79fd944cb4086e89346985f9b5394facb5e5da61037afdf1 |
Close
Hashes for locobuzz_python_orm-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b268445a52e76c184244d5ae2df6d9bf85660798e2ca1b6355dfcf9599ee8784 |
|
MD5 | 70d8189602d842d4879f08b3bde8fbb5 |
|
BLAKE2b-256 | 3e367ef946ae4c3e9027804967ece806f5728b0fe6f295aff7909fb6573d347d |