DBIx-QuickORM
view release on metacpan or search on metacpan
}
};
};
Variants can be fetched using the colon : in the name:
my $pg_orm = orm('my_orm:pgsql');
my $mysql_orm = orm('my_orm:mysql');
This works in orm(), db(), schema(), table(), and row() builders. It
does cascade, so if you ask for the mysql variant of an ORM, it will
also give you the mysql variants of the database, schema, tables and
rows.
db $NAME
db $NAME => sub { ... }
$db = db $NAME
$db = db $NAME => sub { ... }
}
};
};
Variants can be fetched using the colon `:` in the name:
my $pg_orm = orm('my_orm:pgsql');
my $mysql_orm = orm('my_orm:mysql');
This works in `orm()`, `db()`, `schema()`, `table()`, and `row()` builders. It does
cascade, so if you ask for the `mysql` variant of an ORM, it will also give you
the `mysql` variants of the database, schema, tables and rows.
- `db $NAME`
- `db $NAME => sub { ... }`
- `$db = db $NAME`
- `$db = db $NAME => sub { ... }`
Used to define a database.
db mydb => sub {
lib/DBIx/QuickORM.pm view on Meta::CPAN
}
};
};
Variants can be fetched using the colon C<:> in the name:
my $pg_orm = orm('my_orm:pgsql');
my $mysql_orm = orm('my_orm:mysql');
This works in C<orm()>, C<db()>, C<schema()>, C<table()>, and C<row()> builders. It does
cascade, so if you ask for the C<mysql> variant of an ORM, it will also give you
the C<mysql> variants of the database, schema, tables and rows.
=item C<< db $NAME >>
=item C<< db $NAME => sub { ... } >>
=item C<< $db = db $NAME >>
=item C<< $db = db $NAME => sub { ... } >>
( run in 0.347 second using v1.01-cache-2.11-cpan-2b1a40005be )