EntityModel::Storage::PostgreSQL - backend storage interface for EntityModel
Open the initial database connection and set schema if provided.
Applies the requested model to the database.
Given a model, apply it to the database, optionally creating the requested schema.
Applies this entity to the database - currently, supports creation only.
Get the primary keys for a table.
Read all fields for a given table.
Since this is typically a slow query, we cache the entire set of fields for all tables on the first call.
Cache field information across all tables in the currently-selected database.
Cache primary key information across all tables in the database.
Get a list of all the existing tables in the schema.
Returns a list of all fields for the given table.
Returns the quoted version of the current schema.
Generate the quoted table identifier including any schema name if available.
Generate the quoted field identifier.
Create a new table.
Query for removing the given table.
Create the given table.
Add the requested field to the given table, and clear related caches.
Remove a table entirely.
Read all table definitions from the database.
Remove the schema entry.
Returns true if the current schema exists in the database, false if not.
Reports how many rows are in the given table.
Creates a new instance for the given entity.
Update the database with current in-memory values for the given entity instance.
Read information for the requested entity instance.
Returns a database handle for this storage backend.
Tom Molesworth <email@example.com>
Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.