Persistence

This package contains classes used to create MySQL persistence components.

Classes

IdentifiableJsonMySqlPersistence

Abstract persistence component that stores data in MySQL 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.

IdentifiableMySqlPersistence

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

IndexOptions

Defines index options

MySqlPersistence

Abstract persistence component that stores data in MySQL 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 the child classes by accessing this._database or this._collection properties.