Creates a new DBIx::SearchBuilder::SchemaGenerator object. The single required argument is a DBIx::SearchBuilder::Handle.
DBIx::SearchBuilder::SchemaGenerator
DBIx::SearchBuilder::Handle
Adds a new model class to the SchemaGenerator. Model should either be an object of a subclass of DBIx::SearchBuilder::Record, or the name of such a subclass; in the latter case, AddModel will instantiate an object of the subclass.
DBIx::SearchBuilder::Record
AddModel
The model must define the instance methods Schema and Table.
Schema
Table
Returns true if the model was added successfully; returns a false Class::ReturnValue error otherwise.
Class::ReturnValue
Returns a list of SQL statements (as strings) to create tables for all of the models added to the SchemaGenerator.
Returns a string containing a sequence of SQL statements to create tables for all of the models added to the SchemaGenerator.
Takes an object of a subclass of DBIx::SearchBuilder::Record; returns a new DBIx::DBSchema::Table object corresponding to the model.
DBIx::DBSchema::Table
Takes in a string and returns it as a Class::ReturnValue error object.
DBIx::SearchBuilder::SchemaGenerator - Generate table schemas from DBIx::SearchBuilder records
use DBIx::SearchBuilder::SchemaGenerator;
To install DBIx::SearchBuilder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::SearchBuilder
CPAN shell
perl -MCPAN -e shell install DBIx::SearchBuilder
For more information on module installation, please visit the detailed CPAN module installation guide.