|
GettingStarted
Minimal actions to get things happening
This page is a brief overview of what you need to do to get started with perl-dbr. DownloadUse the "Source" tab: http://code.google.com/p/perl-dbr/source/checkout Install% perl Makefile.PL % make % sudo make install ExamplesThere are currently 2 examples in the perl-dbr distribution. Both examples output verbose logging information to /tmp files, so you can see what DBR is doing behind the scenes when you run the example scripts. Music ExampleThis example is a ready-to-run sample application. It comes with:
% cd examples/music % ./basic.pl Cars ExampleThis example starts from scratch and is a good way to see the gears behind the scenes. You can quickly get it running by: % cd examples/cars % ./init.sh % ./script/create.pl Then run other scripts, such as: % ./script/all_cars.pl There is a README.txt file that walks through the pieces. This example does not use the Admin tool; instead it has a collection of SQL files that load up the data, so you can see what kinds of metadata setup is required (which the Admin tool will do for you). Your Own ProjectConfig FileThe config file contains connectivity info to get to the Config database. DBR uses the config database to access all the instances that have been registered, and use the schema information that has been loaded (with the Scan tool and the Admin tool). Here are a couple of examples of what your config file will look like: SQLitename=dbrconf class=master database=myappdb dbfile=/path/to/sqlite/file.db type=SQLite dbr_bootstrap=1 MySQLname=dbrconf class=master database=myappdb user=username password=password hostname=dbhostname type=Mysql dbr_bootstrap=1 Admin ToolTBD The admin tools is located in the bin directory in the perl-dbr distribution. (Does it get installed?)
Write Application CodeTBD
|