Convenient Wrapper around AioSQL and a Database Connection
Project description
AnoDB
Convenient Wrapper around aiosql and a Database Connection.
Description
This class creates a persistent database connection and imports SQL queries from a file.
Example
import anodb
db = anodb.DB('sqlite3', 'test.db', 'test.sql')
db.do_some_insert(key=1, val='hello')
db.do_some_update(key=1, val='world')
db.commit()
db.close()
Versions
2.0
Swith from AnoSQL to AioSQL.
1.3
Make options
accept different types.
Make queries
optional, and allow to load from files or strings.
1.2
Add options
string parameter to constructor.
1.1
Add **conn_options
parameter to constructor.
Add cursor()
method.
1.0
Initial release.
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
anodb-2.0.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
anodb-2.0.0-py3-none-any.whl
(3.9 kB
view hashes)