NAME
DBIO::Shortcut::pg - `use DBIO -pg` shortcut for the PostgreSQL driver
VERSION
version 0.900007
DESCRIPTION
The stub DBIO loads for the -pg shortcut:
package MyApp::Schema;
use DBIO Schema => -pg;
package MyApp::Schema::Result::User;
use DBIO -pg;
It is not used directly.
METHODS
apply
DBIO::Shortcut::pg->apply($class);
Called by use DBIO with the class that named -pg. Hands it to "apply_driver" in DBIO for the driver PostgreSQL: a schema class gets +DBIO::PostgreSQL::Storage as its storage_type, a result class loads DBIO::PostgreSQL::Result. A schema class does not get the DBIO::PostgreSQL component that way; pg_schemas and the other declarations of it need load_components('PostgreSQL').
AUTHOR
DBIO & DBIx::Class Authors
COPYRIGHT AND LICENSE
Copyright (C) 2026 DBIO Authors Portions Copyright (C) 2005-2025 DBIx::Class Authors Based on DBIx::Class, heavily modified.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.