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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08f64a36db1b16c1904c17223578974f098216afbd1a15f21d5be6868a3f49ae |
|
MD5 | 71ad65eaf0a63f5a1f394cbf07542180 |
|
BLAKE2b-256 | 8934f9ef199331e6be9643847856f35f457c636bbb2ad38a8b4d6c493a9f9175 |
Close
Hashes for locobuzz_python_orm-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 691be7fd1db4c90885f3577568c750982db54d1e2e71922f5833a17c951623a8 |
|
MD5 | b09496c7f6d8d9e92c61401b0af4129f |
|
BLAKE2b-256 | d6a6cfe7f3c95fec145e0be174fed7c3e2a92707b2412cc0deb0d021a16f6456 |