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.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: anodb-1.3.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for anodb-1.3.0.tar.gz
Algorithm Hash digest
SHA256 6363cab25472fd292b79cb14e0aa329d7e9aa54c0742d7df594cb15901293114
MD5 98b3f383fb648b90f45167ab2e50ac7c
BLAKE2b-256 7f563ea8527f0a4248a5197ce9bdf5811668f684992d7023fdd5f91edb4e86af

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: anodb-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for anodb-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 030296605554ac607d610ae596f6f784ca1e3b04273dcf84e4d9ea0ca265f28c
MD5 cb5dd15c3184454e408428bc92ecfae5
BLAKE2b-256 c926e2c51c4dfb5af65b78f928e7d0558ca207440d53ea4bf1f1338015e405dd

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