Created
October 14, 2009 09:02
-
-
Save nekoya/209906 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use Perl6::Say; | |
package MyApp::DB; | |
use DBIx::Skinny setup => +{ | |
dsn => 'dbi:SQLite:test.db', | |
username => '', | |
password => '', | |
}; | |
package MyApp::DB::Schema; | |
use base qw/DBIx::Skinny::Schema::Loader/; | |
__PACKAGE__->load_schema; | |
package main; | |
warn MyApp::DB->dbd; | |
my $db = MyApp::DB->new; | |
warn $db->dbd; | |
warn MyApp::DB->dbd; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment