A db interface.
Project description
db_frostyfeet909
Provides methods to work with a queue pool from SQL alchemy.
Example
import db_frostyfeet909 as db
connection = db.Connection('postgresql+psycopg2://{USERNAME}:{PASSWORD}@{IP}/{DATABASE}')
connection.create_database()
connection.execute_query("CREATE TABLE test (key INT PRIMARY KEY, value TEXT);")
connection.execute_query("INSERT INTO test (key, value) VALUES (1, 'first');")
connection.execute_query("INSERT INTO test (key, value) VALUES (2, 'second');")
first_key = {"key": 1}
first_value = connection.execute_query_result_single("SELECT value FROM test WHERE key = :key LIMIT 1;", first_key)["value"]
print("The first value is: {0}".format(first_value))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
db_frostyfeet909-0.0.8.tar.gz
(15.4 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_frostyfeet909-0.0.8.tar.gz.
File metadata
- Download URL: db_frostyfeet909-0.0.8.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd5ddadca72ec4c6f39a77ea82039ea573009a38b4a793dad8b692897bc72784
|
|
| MD5 |
4c715b60da5c3950b83a2c3193058f99
|
|
| BLAKE2b-256 |
72680f7e6843a9333fd62686457c01d3adad9640fcc076a797f49e43d3618f75
|
File details
Details for the file db_frostyfeet909-0.0.8-py3-none-any.whl.
File metadata
- Download URL: db_frostyfeet909-0.0.8-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1661718723b83be38e4eae3463b71cb8781bbda30c0183a58f48a31a85ac219
|
|
| MD5 |
47eab21a3951098208b0b9aa4c213486
|
|
| BLAKE2b-256 |
890378604e4f029f076732dda866e726f72fbb363ed39e169ef044516a27bf4a
|