Rose::DBx::Bouquet

Use a database schema to generate Rose-based source code
Download

Rose::DBx::Bouquet Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ron Savage
  • Publisher web site:
  • http://search.cpan.org/~rsavage/

Rose::DBx::Bouquet Tags


Rose::DBx::Bouquet Description

Use a database schema to generate Rose-based source code Rose::DBx::Bouquet is a Perl module to use a database schema to generate Rose-based source code.Synopsis Step 1: Unpack the distros: shell> tar xvzf Rose-DBx-Bouquet-1.00.tgz (from CPAN) shell> tar xvzf Local-Wine-1.06.tgz (see FAQ) Step 2: Check for (and install) the pre-requisites: shell> cd Rose-DBx-Bouquet-1.00 shell> perl Build.PL shell> cd ../Local-Wine-1.06 shell> perl Build.PL Note: You /must/ now be in Local-Wine-1.06/. Step 3: Create and optionally populate the database: Edit lib/Local/Wine/.htwine.conf and then shell> scripts/create.tables.pl shell> scripts/populate.tables.pl Step 4: Edit: o lib/Rose/DBx/Bouquet/.htrose.bouquet.conf o lib/Local/Wine/.htwine.conf Step 5: Run the first code generator (see scripts/rosy for an overview): shell> scripts/run.rose.app.gen.pl > scripts/run.rose.pl Step 6: This is the log from run.rose.app.gen.pl: exclude: ^(?:pg_|sql_) module: Local::Wine output_dir: ./lib remove: 0 tmpl_path: /home/ron/perl.modules/Rose-DBx-Bouquet-1.00/templates verbose: 1 Working dir: lib/Local/Wine/Rose Rose::DB module: Local::Wine::Base::DB Processing tables: grape vineyard wine wine_maker Processing modules: Grape Vineyard Wine WineMaker Processing template generator.pl.tmpl Success Step 7: Run the second code generator: shell> perl -Ilib scripts/run.rose.pl Step 8: This is the log from run.rose.pl: Processing Rose::DB-based modules: Generated lib/Local/Wine/Rose/Grape.pm Generated lib/Local/Wine/Rose/Vineyard.pm Generated lib/Local/Wine/Rose/Wine.pm Generated lib/Local/Wine/Rose/WineMaker.pm Processing */Manager.pm modules: Generated lib/Local/Wine/Rose/Grape/Manager.pm Generated lib/Local/Wine/Rose/Vineyard/Manager.pm Generated lib/Local/Wine/Rose/Wine/Manager.pm Generated lib/Local/Wine/Rose/WineMaker/Manager.pm Processing */Form.pm modules: Module: Grape. Columns: id, name Generated lib/Local/Wine/Rose/Grape/Form.pm Module: Vineyard. Columns: id, name Generated lib/Local/Wine/Rose/Vineyard/Form.pm Module: Wine. Columns: grape_id, id, rating, review_date, vineyard_id, vintage, wine_maker_id Generated lib/Local/Wine/Rose/Wine/Form.pm Module: WineMaker. Columns: id, name Generated lib/Local/Wine/Rose/WineMaker/Form.pm Success You can see this generated 12 files. These files are used by CGI::Application::Bouquet::Rose (on CPAN), and by test.rose.pl. Step 9: Test the generated code: shell> scripts/test.rose.pl Step 10: This is the log (12 lines) from test.rose.pl: Total grape record count: 63. Page: 1 of 'name like S%'. 1: Sangiovese,Shiraz. 2: Sauvignon,Semillon. 3: Sav Blanc. 4: Sav Blanc,Semillon. Page: 2 of 'name like S%'. 1: Sav Blanc,Verdelho. 2: Semillon. 3: Shiraz. 4: Sparkling Shiraz. Page: 3 of 'name like S%'. Step 11: Switch to the instructions for CGI::Application::Bouquet::Rose. Requirements: · Perl


Rose::DBx::Bouquet Related Software