Persistence

This package contains classes used to create PostgreSQL persistence components.

Classes

IdentifiableJsonPostgresPersistence

Abstract persistence component that stores data in PostgreSQL in JSON or JSONB fields and implements a number of CRUD operations over data items with unique ids. The data items must implement the IIdentifiable interface.

IdentifiablePostgresPersistence

Abstract persistence component that stores data in PostgreSQL and implements a number of CRUD operations over data items with unique ids. The data items must implement the IIdentifiable interface.

PostgresPersistence

Abstract persistence component that stores data in PostgreSQL using the official driver.

This is the most basic persistence component that is only able to store data items of any type. Specific CRUD operations over the data items must be implemented in child classes by accessing this._db or this._collection properties.