GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Bio::MAGETAB::Util::Persistence(3) User Contributed Perl Documentation Bio::MAGETAB::Util::Persistence(3)

Bio::MAGETAB::Util::Persistence - A Tangram-based object persistence class for MAGE-TAB.

 use Bio::MAGETAB::Util::Persistence;
 my $db = Bio::MAGETAB::Util::Persistence->new({
    dbparams       => [ "dbi:mysql:$dbname", $user, $pass ],
 });

 $db->deploy();
 $db->connect();
 $db->insert( $magetab_object );

This class provides an object persistence mechanism for storing MAGE-TAB objects in a relational database. The class is, in effect, just a thin wrapper around a Tangram::Storage instance which implements most of the database interaction methods. The class has been used successfully with both MySQL and SQLite database backends, and should in theory be usable with any database engine supported by the Tangram modules.

dbparams
A reference to an array containing database connection parameters. This array is passed directly to "DBI->connect()".
config
The Tangram schema definition used to create the database. This attribute is read-only.
store
The underlying Tangram::Storage object used for most of the interaction with the database.

deploy
Connect to the database and deploy the schema. This only needs to be done once to set up the database.
connect
Connect to the database. This must be done before using any of the following methods.
get_schema
Returns the Tangram::Schema object created using the config attribute.
class_config
A class method which returns the config hash reference used to create the Tangram::Schema object.
insert
select
update
erase
id
count
sum
cursor
remote
All these methods are delegated directly to the Tangram::Storage object created by the "connect" method, and contained within the Persistence object. Please see the Tangram documentation for more information on these methods.

Bio::MAGETAB::DBLoader <http://tangram.utsl.gen.nz/>

Tim F. Rayner <tfrayner@gmail.com>

This library is released under version 2 of the GNU General Public License (GPL).
2013-01-13 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.