Skip to content

Instantly share code, notes, and snippets.

@Getty
Created August 4, 2011 23:55
Show Gist options
  • Select an option

  • Save Getty/1126619 to your computer and use it in GitHub Desktop.

Select an option

Save Getty/1126619 to your computer and use it in GitHub Desktop.
Synopsis preview for Test::DBIC::Schema::Connector
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