Anorm Another ORM logo Anorm Another ORM

$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');