Skip to main content

Simple ORM for basic operations in SQLite databases

Project description

This module implements a simple ORM for basic operations in SQLite databases.

The module is derived from a working example of the active record pattern created by Chris Mitchell to supplement a talk given at the Oregon Academy of Sciences meeting on January 26, 2011.

The original example is published on GitHub as

https://github.com/ChrisTM/Active-Record-Example-for-a-Gradebook

and the code is understood to be freely available under the MIT license as above.

The original code has been modified so that

  • The column names in the selected table are obtained automatically by introspection of the database.
  • The primary key column is no longer required to be 'pk'.
  • Errors are reported via a dialog box.

Running gradebookExample.py demonstrates queries equivalent to Chris Mitchell's original tests.

More complex usage in conjunction with

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

active_record_mc-0.6.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

active_record_mc-0.6-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file active_record_mc-0.6.tar.gz.

File metadata

  • Download URL: active_record_mc-0.6.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for active_record_mc-0.6.tar.gz
Algorithm Hash digest
SHA256 d4947d93271e980b19be553eae6505dfe476a3cbe72dea51d51191769560728f
MD5 d9d864eb627891de37ad41bb12b5a1db
BLAKE2b-256 08805ac30b54745ec3d78c9ce364738754bf18569967dfc15812702d8aa49208

See more details on using hashes here.

File details

Details for the file active_record_mc-0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for active_record_mc-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8d4948c0f2b48e079cf2f786d3a2b22d763ec2a7af2ead4566e09f00471b933f
MD5 92af9c53074e116042b537fd13249d72
BLAKE2b-256 be39177b0716581b19bec76fe5fc54269f368f96dee99e0135901797fdcac0a8

See more details on using hashes here.

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