$anorm = Anorm::connect('mydata', 'mysql:host=localhost;dbname=some_db', 'user', 'password');
then having connected you can fetch a reference to the connection with use
.
$anorm = Anorm::use('mydata');
$anorm = Anorm::connect('mydata', 'mysql:host=localhost;dbname=some_db', 'user', 'password');
then having connected you can fetch a reference to the connection with use
.
$anorm = Anorm::use('mydata');