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 active-list-mc is demonstrated in TreeViewDbExampleAll.py. This program requires the Chinook database, chinook.db from which it uses the 'employees' table.

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

Uploaded Source

Built Distribution

active_record_mc-0.7.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: active_record_mc-0.7.1.tar.gz
  • Upload date:
  • Size: 5.5 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.7.1.tar.gz
Algorithm Hash digest
SHA256 2f843938614187ecd60547519ee509ab61f45f8bc354e08833ccd60559a0b1f8
MD5 fcf30ce82d2c790b9696916df39d38a4
BLAKE2b-256 1b1300d7892296c3e45975029fd08d101162d97a6f7e32a7108aa6c72109c162

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for active_record_mc-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9345e4bb6fdbfe47a3fdc38f5eee8b948b87e3954ffe52115ad5e1a5877d2258
MD5 02410bbc2be0ab48105b04e3c46fb740
BLAKE2b-256 542a3f3a401bfd7c4a2ff00c7aae7108d95fc69ff8bf793f779d5d7fe68dda41

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