Created
August 4, 2011 23:55
-
-
Save Getty/1126619 to your computer and use it in GitHub Desktop.
Synopsis preview for Test::DBIC::Schema::Connector
This file contains hidden or 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
| use Test::DBIC::Schema::Connector; | |
| my $schema = test_dbic_schema_connect('MySchema'); | |
| # MYSCHEMA_DSN will be used as DSN if given | |
| # MYSCHEMA_USER will be used as username if given | |
| # MYSCHEMA_PASS will be used as password if given | |
| my $schema = test_dbic_schema_connect('MySchema',{ | |
| env_prefix => 'I_LOVE', | |
| user => 'peter', | |
| env_pass => 'I_HATE_PASS', | |
| }); | |
| # I_LOVE_DSN will be used as DSN if given | |
| # The user is fixed to be peter | |
| # I_HATE_PASS will be used as password if given |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment