|
NAMET2::Storage - Database handle, object cacheSYNOPSIS# load the application schema, connect to the database my $storage = T2::Storage->open("MyApp"); # store an object with a schema $storage->insert($object); DESCRIPTIONThe Tangram T2 Storage class. Currently, this is a subclass of Tangram::Storage, but it is planned to slowly move pieces of Tangram proper into this new core.METHODS
Gets the database information for
$site_name , in the form ($dsn,
$username, $password,
$schema); If $dont_get_schema
is set, no attempt to load the Tangram schema is made.
Returns the site name that was used to connect to this
database.
Save an object to the database (that is, do an insert if
this is a new object or an update if it is already persistent).
unload_all() A smarter version of unload_all() that really makes sure all objects are cleaned up from memory, using Class::Tangram's clear_refs() method. rollback_all Make double damned sure that this instance of the Storage handle doesn't hold any locks dbi_handle() Returns a current DBI handle, though you are not guaranteed to get Tangram's own handle. AUTHORSam Vilain, <samv@cpan.org>POD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |