projects
/
maypole.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26c9a78
)
Take user and password.
author
Simon Cozens
<simon@simon-cozens.org>
Tue, 17 Feb 2004 10:30:01 +0000
(10:30 +0000)
committer
Simon Cozens
<simon@simon-cozens.org>
Tue, 17 Feb 2004 10:30:01 +0000
(10:30 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@64
48953598
-375a-da11-a14b-
00016c27c3ee
lib/Maypole/Model/CDBI.pm
patch
|
blob
|
history
diff --git
a/lib/Maypole/Model/CDBI.pm
b/lib/Maypole/Model/CDBI.pm
index 43b8c7be0d808b22879d7d1edc24e357a984fbfe..b2e592973fa875c2b33ca60d23913335d647d636 100644
(file)
--- a/
lib/Maypole/Model/CDBI.pm
+++ b/
lib/Maypole/Model/CDBI.pm
@@
-101,11
+101,13
@@
sub list :Exported {
}
sub setup_database {
- my ($self, $config, $namespace, $dsn) = @_;
+ my ($self, $config, $namespace, $dsn
, $u, $p
) = @_;
$config->{dsn} = $dsn;
$config->{loader} = Class::DBI::Loader->new(
namespace => $namespace,
- dsn => $dsn
+ dsn => $dsn,
+ user => $u,
+ password => $p,
);
$config->{classes} = [ $config->{loader}->classes ];
$config->{tables} = [ $config->{loader}->tables ];