Guest User

Untitled

a guest
Apr 15th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. package Sakila::DBH;
  2.  
  3. use strict;
  4.  
  5. my $dbfile = "$ENV{SAKILA}/schema.sqlite3";
  6.  
  7. our %c =
  8. (
  9. dsn => "dbi:SQLite:$dbfile",
  10. user => '',
  11. pass => ''
  12. );
  13.  
  14.  
  15. sub dbh {
  16.  
  17. use DBI;
  18.  
  19. my $dbh = DBI->connect( $c{dsn}, '', '', { RaiseError => 1 } ) ;
  20.  
  21. }
  22.  
  23. sub connect_data {
  24. \%c;
  25. }
  26.  
  27. 1;
Add Comment
Please, Sign In to add comment