projects
/
DBIx-DBSchema.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff396df
)
DBSchema->sql usage clarification
author
ivan
<ivan>
Wed, 27 Sep 2000 13:57:55 +0000
(13:57 +0000)
committer
ivan
<ivan>
Wed, 27 Sep 2000 13:57:55 +0000
(13:57 +0000)
DBSchema.pm
patch
|
blob
|
history
diff --git
a/DBSchema.pm
b/DBSchema.pm
index
7e0de78
..
94edd0a
100644
(file)
--- a/
DBSchema.pm
+++ b/
DBSchema.pm
@@
-39,7
+39,7
@@
DBIx::DBSchema - Database-independent schema objects
$DBIx_DBSchema_table_object = $schema->table("table_name");
- @sql
_string
= $schema->sql($dsn);
+ @sql = $schema->sql($dsn);
$perl_code = $schema->pretty_print;
%hash = eval $perl_code;
@@
-202,7
+202,7
@@
database, will attempt to use generic SQL syntax.
=cut
-sub sql
_string
{
+sub sql {
my($self, $datasrc) = @_;
map { $self->table($_)->sql_create_table($datasrc); } $self->tables;
}