1DBIx::SearchBuilder::ScUhseemraGCeonnetrraitbourt(e3d)PDeBrIlx:D:oSceuamrecnhtBautiilodner::SchemaGenerator(3)
2
3
4
5   new HANDLE
6       Creates a new "DBIx::SearchBuilder::SchemaGenerator" object.  The
7       single required argument is a "DBIx::SearchBuilder::Handle".
8
9       Adds a new model class to the SchemaGenerator.  Model should either be
10       an object of a subclass of "DBIx::SearchBuilder::Record", or the name
11       of such a subclass; in the latter case, "AddModel" will instantiate an
12       object of the subclass.
13
14       The model must define the instance methods "Schema" and "Table".
15
16       Returns true if the model was added successfully; returns a false
17       "Class::ReturnValue" error otherwise.
18
19       Returns a list of SQL statements (as strings) to create tables for all
20       of the models added to the SchemaGenerator.
21
22       Returns a string containing a sequence of SQL statements to create
23       tables for all of the models added to the SchemaGenerator.
24
25       Takes an object of a subclass of DBIx::SearchBuilder::Record; returns a
26       new "DBIx::DBSchema::Table" object corresponding to the model.
27
28       Takes in a string and returns it as a Class::ReturnValue error object.
29

NAME

31       DBIx::SearchBuilder::SchemaGenerator - Generate table schemas from
32       DBIx::SearchBuilder records
33

SYNOPSIS

35           use DBIx::SearchBuilder::SchemaGenerator;
36
37
38
39perl v5.36.3                      2023-1D2B-I0x4::SearchBuilder::SchemaGenerator(3)
Impressum