NAME
DBIO::ResultSourceProxy - Proxy result source methods onto a result class
VERSION
version 0.900000
METHODS
set_inherited_ro_instance
add_columns
add_relationship
table
__PACKAGE__->table('tbl_name');
Gets or sets the table name. Initialises the result-source instance on first call.
indices
__PACKAGE__->indices(
name_idx => 'name',
name_city_idx => ['name', 'city'],
);
Declares one or more secondary indexes on the table. Field lists may be a single column name or an arrayref of column names. A hashref argument is also accepted:
__PACKAGE__->indices({ name_idx => 'name' });
The indexes are picked up by both the SQL::Translator deploy path (via sqlt_deploy_hook) and the native PostgreSQL deploy path (via pg_indexes). Equivalent to the DBICx::Indexing component on DBIx::Class. The richer "idx" in DBIO::Cake DSL shares the same underlying hook installer.
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.