PCLT-DB: An addon to PCLT package: enchance PCLT catalog with PostgreSQL powers.
"PCLT" is an abbreviation for "Parametric Composable Localizable Templates" - in fact it should also hold Detalizable. Term "Detailizable content (message)" in this package has a following meaning: some content, representing which it is possible to regulate, in how much details it is represented.
Conceptually, this package is a powerful extension to the well known Show class, that (extension) is thought to be embeded in any Haskell program, which requires multilanguage support, and/or where messages should be detailizable.
For more information about PCLT, read in it's description in it's own Cabal file.
_________
By the base package (PCLT http://hackage.haskell.org/package/PCLT)
the templates are provided to be stored
statically in module declarations using
Text.PCLT.HasStaticRawPCLTs.HasStaticRawPCLTs
class instaniations.
The PCST-DB package adds a possibility to store templates in DB (under PostgreSQL v8.4. (not less)). ER diagram: http://i1.fastpic.ru/big/2009/1212/f0/5b9845716e5a6984e9bc9d62a61928f0.png
The following units are storable in DB:
localizable templates
localized templates
languages
collections of localizable templates
collections (of localizable templates) compositions
catalogs
configurations of PCLT catalogs
localizable templates detalization policies
For each catalog in DB there is stored a special flag "catalog data or config changed". The flag gets raised by an army of triggers, that watches every table, and is thought to get dropped by a program, which uses DB catalog. Drop the flag right before catalog update from DB.
Unfortunately, the current implementation of this flagging system constraints the number of agents that update their catalogs from DB by only one (because, when agent updates it's catalog, it drops the flag, and other agents don't know that flag was risen, so they can't know if version of catalog in their operative memory is older then in DB or not).
But this limitation removal is planned as a first ToDo in the next version of PCLT-DB.
Modules
[Index]
- Database
- Database.PCLT
- Database.PCLT.InterfaceWithDB
- Database.PCLT.InterfaceWithDB__
- Database.PCLT.UpdatableCatalog
- Database.ReadableFromDB
- Database.ReadableFromDB__
- Database.PCLT
Downloads
- PCLT-DB-0.1.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.1.1 |
---|---|
Change log | NEWS |
Dependencies | base (>=4 && <5), bytestring, containers, convertible (>=1.0.6), HDBC (>=2.2.1), HDBC-postgresql (>=2.2.0.0), mtl, PCLT [details] |
Tested with | ghc ==6.10.4 |
License | LicenseRef-LGPL |
Copyright | Copyright (c) 2009 Andrejs Sisojevs |
Author | Andrejs Sisojevs <andrejs.sisojevs@nextmail.ru> |
Maintainer | Andrejs Sisojevs <andrejs.sisojevs@nextmail.ru> |
Category | Database |
Home page | http://github.com/Andrey-Sisoyev/PCLT-DB |
Uploaded | by AndreySisoyev at 2009-12-12T08:15:37Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 2195 total (8 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |