diff options
Diffstat (limited to 'util')
-rwxr-xr-x | util/vndb.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/vndb.pl b/util/vndb.pl index b46d409a..3c0be0c2 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -25,6 +25,9 @@ use VNWeb::Validation (); use VNWeb::LangPref (); TUWF::set %{ config->{tuwf} }; +TUWF::set db_login => sub { + DBI->connect(config->{tuwf}{db_login}->@*, { PrintError => 0, RaiseError => 1, AutoCommit => 0, pg_enable_utf8 => 1, ReadOnly => 1 }) +} if config->{read_only}; # Signal to VNWeb::Elm whether it should generate the Elm files. # Should be done before loading any more modules. |