Skip to main content

Convenient Wrapper around AnoSQL and a Database Connection

Project description

AnoDB

Convenient Wrapper around anosql 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')
res = db.do_some_update(key=1, val='world')
db.commit()

db.close()

Versions

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anodb-1.3.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

anodb-1.3.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file anodb-1.3.1.tar.gz.

File metadata

  • Download URL: anodb-1.3.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2

File hashes

Hashes for anodb-1.3.1.tar.gz
Algorithm Hash digest
SHA256 9af983cb74281acf9614c27708228d4696723207f62c222519422aa2f96dca07
MD5 5217b92b42a6b8f472f2a939866c7542
BLAKE2b-256 3c929bbe7be478ef85657c95c94106b283432683e092f5c3a86918e74cfff310

See more details on using hashes here.

Provenance

File details

Details for the file anodb-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: anodb-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2

File hashes

Hashes for anodb-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1cb1624cac5157848a547bc9aaafaaa5ed84c546d95ba26ee284c772b07896ac
MD5 761a230fedb46cfa05c20303efded0ee
BLAKE2b-256 fd3fd318595a899cd322b620265a8ee080f70996142ea376e218ebb0203eb5ce

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page