Yote::MysqlIO - A mysql persistance engine for Yote.
This is deprecated and has not been further developed. It may be brought up to par with ObjProvider.
This can be installed as a singleton of Yote::ObjProvider and does the actual storage and retreival of Yote objects.
The package name is used as an argument to the Yote::ObjProvider package which also takes the configuration parameters for Yote::MysqlIO.
Yote::ObjProvider::init( datastore => 'Yote::MysqlIO', db => 'yote_db', uname => 'yote_db_user', pword => 'yote_db_password' );
returns the number of items in the given container
Provides a database handle. Used only in testing.
Makes sure that the datastore has the correct table structure set up and in place.
Returns a hash representation of a yote object, hash ref or array ref by id. The values of the object are in an internal storage format and used by Yote::ObjProvider to build the object.
Returns the id of the first object in the system, the YoteRoot.
Returns the id for the given hash ref, array ref or yote object. If the argument does not have an id assigned, a new id will be assigned.
Removes the key from the hash given by the id
Inserts the item into the list with an optional index. If not given, this inserts to the end of the list.
Returns the max ID in the yote system. Used for testing.
Returns a paginated hash reference
Returns a paginated list reference
Sets the available for recycle mark on the object entry in the database by object id and removes its data.
Recycles all objects in the range given if they cannot trace back a path to root.
Stores the object of class class encoded in the internal data format into the data store.
Stows all objects that are marked as dirty. This is called automatically by the application server and need not be explicitly called.
Copyright (C) 2011 Eric Wolf
This module is free software; it can be used under the same terms as perl itself.