db::Pg - Storage back end implementation using Postgresql
This module implements all necessary methods (new(), insert(), getnextid(), and so on), so that it is useful as a storage back end by Datastore. In order to work correctly, the following is necessary:
The Postgresql database and table must be created. See the files etc/db-00.sql and etc/db-01.sql.
Proper values for db, dbuser and dbpass must be supplied as configuration values. See also hsctl.
The module db::Pg is a general-purpose database driven back end. There is but one Postgresql-dependend statement, which increments an internal id using select nextval('hsdata_seq'). E.g., the right Oracleism would be select hsdata_seq.nextval from dual. Other than that, this module is a good template for generic database back ends.
The tamper-resistant server, all used modules, and the documentation were written by Karel Kubat / karel@e-tunity.com. Copyright (c) 2009 ff. Distributed under GPLV3.