Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Portfolio::Schema;
- use DBIx::Simple;
- my $db;
- sub db {
- if (!$db) {
- $db = DBIx::Simple->connect('dbi:SQLite:dbname=database.db', undef, undef, { sqlite_unicode => 1 }) or die DBIx::Simple->error;
- }
- $db;
- };
- 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement