Games::Framework::RCP::Setup - Get a connection and load quick defaults.
0.12
use Games::Framework::RCP::Setup qw/login load_defaults/; my $schema = login($data_source, $username, $password, $options, $on_connect); load_defaults(); # Do whatever you want with the schema.
The Setup file contains the basics needed to connect and setup the database. It does not abstract away all of the functionality such as deploy(): it is up to the Game Master to actually deploy the database.
This function accepts the same parameters as the traditional DBI->connect. The advantage of using login over DBI->connect is that the schema object is returned right away.
This function returns the current schema object.
This function loads the database with some initial data to help get a Game Master started on hosting.
This function allows others to load table data quickly into the database without requiring access to other modules.
This may be removed in the future.
Jason Felds, <wolfman.ncsu2000 at gmail.com>
<wolfman.ncsu2000 at gmail.com>
Please report any bugs or feature requests to bug-Games-Framework-RCP at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Games-Framework-RCP-Setup. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-Games-Framework-RCP at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Games::Framework::RCP::Setup
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Games-Framework-RCP-Setup
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Games-Framework-RCP-Setup
CPAN Ratings
http://cpanratings.perl.org/d/Games-Framework-RCP-Setup
Search CPAN
http://search.cpan.org/dist/Games-Framework-RCP-Setup/
See Games::Framework::RCP for all acknowledgements.
Copyright 2009 Jason Felds, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Games::Framework::RCP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Framework::RCP
CPAN shell
perl -MCPAN -e shell install Games::Framework::RCP
For more information on module installation, please visit the detailed CPAN module installation guide.