NAME

EntityModel::Storage::Perl - backend storage interface for EntityModel

VERSION

version 0.003

SYNOPSIS

See EntityModel.

DESCRIPTION

See EntityModel.

This does not really qualify as a 'storage' module, since it's intended purely for use in testing, providing an ephemeral backing store for entities which will disappear on program termination.

METHODS

setup

apply_model

apply_model_and_schema

apply_entity

read_primary

Get the primary keys for a table.

read_fields

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.

table_list

Get a list of all the existing tables in the schema.

field_list

Returns a list of all fields for the given table.

read

Reads the data for the given entity and returns hashref with the appropriate data.

Parameters:

create

Creates new entry for the given EntityModel::Entity.

Parameters:

store

Stores data to the given entity and ID.

Parameters:

remove

Removes given ID from storage.

Parameters:

find

adjacent

outer

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.