https://github.com/activestate/simplealchemy
Simple wrapper around SQLalchemy
https://github.com/activestate/simplealchemy
Last synced: 17 days ago
JSON representation
Simple wrapper around SQLalchemy
- Host: GitHub
- URL: https://github.com/activestate/simplealchemy
- Owner: ActiveState
- License: mit
- Created: 2014-08-18T19:17:33.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-18T19:42:58.000Z (almost 12 years ago)
- Last Synced: 2025-01-09T10:30:42.837Z (over 1 year ago)
- Language: Python
- Size: 141 KB
- Stars: 0
- Watchers: 50
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
simplealchemy
=============
Simple wrapper around SQLalchemy
This module hides the complexity of SQLAlchemy to provide a simple interface to
store and manipulate Python objects each with a set of properties. Unlike the
default behaviour of sqlalchemy's declaritive_base, inheritance of objects will
not require "join", rather it creates a separate table. This makes it easy to
use objects around from parts of not-so-related applications.
For example, a ``SourcePackage`` table is created by Grail. Then, PyPM will
extend it as ``BinaryPackage`` which gets extended to ``RepoPackage``. The table
for RepoPackage will be concretely inherited, meaning - there will be just be
one table without having to 'join' to another SourcePackage table.
At the moment, PyPM and Grail use this module. It may not be of use to others,
and we may change the api/behaviour. Hence, it makes sense to keep it as an
internal module.