Package entropy :: Package db

Package db

source code


Author: Fabio Erculiani <lxnay@sabayonlinux.org>

Contact: lxnay@sabayonlinux.org

Copyright: Fabio Erculiani

License: GPL-2

Entropy Framework repository database module. Entropy repositories (server and client) are implemented as relational databases. Currently, EntropyRepository class is the object that wraps sqlite3 database queries and repository logic: there are no more abstractions between the two because there is only one implementation available at this time. In future, entropy.db will feature more backends such as MySQL embedded, SparQL, remote repositories support via TCP socket, etc. This will require a new layer between the repository interface now offered by EntropyRepository and the underlying data retrieval logic. Every repository interface available inherits from EntropyRepository class and has to reimplement its own Schema subclass and its get_init method (see EntropyRepository documentation for more information).

EntropyRepository is the sqlite3 implementation of the repository interface, as written above.

To Do: migrate to "_" (underscore) convention

Submodules

Classes
  EntropyRepository
EntropyRepository implements SQLite3 based storage.
Variables
  __package__ = 'entropy.db'