[Rt-commit] r3035 - in DBIx-SearchBuilder/trunk: . SearchBuilder
glasser at bestpractical.com
glasser at bestpractical.com
Wed Jun 1 18:22:04 EDT 2005
Author: glasser
Date: Wed Jun 1 18:22:04 2005
New Revision: 3035
Modified:
DBIx-SearchBuilder/trunk/ (props changed)
DBIx-SearchBuilder/trunk/SearchBuilder/SchemaGenerator.pm
Log:
r33720 at tin-foil: glasser | 2005-06-01 18:12:00 -0400
Modified: DBIx-SearchBuilder/trunk/SearchBuilder/SchemaGenerator.pm
==============================================================================
--- DBIx-SearchBuilder/trunk/SearchBuilder/SchemaGenerator.pm (original)
+++ DBIx-SearchBuilder/trunk/SearchBuilder/SchemaGenerator.pm Wed Jun 1 18:22:04 2005
@@ -83,7 +83,20 @@
sub CreateTableSQLStatements {
my $self = shift;
# The sort here is to make it predictable, so that we can write tests.
- return join "\n", map { "$_ ;\n" } sort $self->_db_schema->sql($self->handle->dbh);
+ return sort $self->_db_schema->sql($self->handle->dbh);
+}
+
+=for public_doc CreateTableSQLText
+
+Returns a string containg a sequence of SQL statements to create tables for all of
+the models added to the SchemaGenerator.
+
+=cut
+
+sub CreateTableSQLText {
+ my $self = shift;
+
+ return join "\n", map { "$_ ;\n" } $self->CreateTableSQLStatements;
}
=for private_doc _DBSchemaTableFromModel MODEL
More information about the Rt-commit
mailing list