No project description provided
Project description
Database Connection Library
This library provides two classes, ACCESSdbc and SSMSdbc, for connecting to Microsoft Access and SQL Server databases respectively.
Installation
pip install db_handler
Usage
Connecting to a Microsoft Access Database
from db_handler import ACCESSdbc
# Create an instance of ACCESSdbc
db = ACCESSdbc('path_to_your_database_file')
# Connect to the database
if db.connect():
# Execute a query and get the results
results = db.execute_query_return_results('SELECT * FROM your_table')
# Don't forget to disconnect when you're done
db.disconnect()
Connecting to a Microsoft SQL Server Database
from db_handler import SSMSdbc
# Create an instance of SSMSdbc
db = SSMSdbc('your_server', 'your_database', 'your_username', 'your_password')
# Connect to the database
if db.connect():
# Execute a query and get the results
results = db.execute_query_return_results('SELECT * FROM your_table')
# Don't forget to disconnect when you're done
db.disconnect()
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
db_handler-0.2.1.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file db_handler-0.2.1.tar.gz.
File metadata
- Download URL: db_handler-0.2.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.11 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c22ee51c5c47fcd7bdf3a6937db004b7f7520b7cab915397f9718c598d0ed97
|
|
| MD5 |
297e90c9efaf35c128a3ca531c53d0ea
|
|
| BLAKE2b-256 |
3411706c99c12f3a1f04d549adfeb925ec28a3b94e17dfdb9f7bd874573efaf8
|
File details
Details for the file db_handler-0.2.1-py3-none-any.whl.
File metadata
- Download URL: db_handler-0.2.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.11 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dac4a46df30257d3a7590e8016d43bc61fbb381031a0466f5c2ce5c744ba73aa
|
|
| MD5 |
9b0ea76c58c5894f5a9f1220c0ef6f4f
|
|
| BLAKE2b-256 |
5ada36aff9c169c7c2e3aa6f7388eee6d37a5fd0460aef49c3781df2df60f2f5
|