DBIx::C...y::Table(3)
NAME πΈ
okay so bestie, this is the manual page for DBIx::Class::ResultSourceProxy::Table β and yeah, the header shortens it to DBIx::C...y::Table(3) from the User Contributed Perl Documentation, iykyk π
.
It provides a classdata table object and method proxies. That's the whole NAME vibe, no cap.
SYNOPSIS β¨
__PACKAGE__->table('cd');
__PACKAGE__->add_columns(qw/cdid artist title year/);
__PACKAGE__->set_primary_key('cdid');
METHODS π
### add_columns π
__PACKAGE__->add_columns(qw/cdid artist title year/);
This one adds columns to the current class and creates accessors for them β so you get your lil column setup and the accessor methods, slay β¨.
### table π¦
__PACKAGE__->table('tbl_name');
Gets or sets the table name. That's it, that's the whole method β simple, iconic, periodt.
### table_class π
__PACKAGE__->table_class('DBIx::Class::ResultSource::Table');
Gets or sets the table class used for construction and validation. So it's giving "which class are we using for this table business" energy π.
### has_column π
if ($obj->has_column($col)) { ... }
Returns 1 if the class has a column of this name, and 0 otherwise. Binary queen behavior, honestly π.
### column_info π
my $info = $obj->column_info($col);
Returns the column metadata hashref for a column. For a description of the various types of column data in this hashref, see "add_column" in DBIx::Class::ResultSource β that's the place to look, bestie π«Ά.
### columns β
my @column_names = $obj->columns;
Hands you the column names. Cute, direct, no extra drama π.
FURTHER QUESTIONS? π§
Check the list of additional DBIC resources. That's literally the instruction β go check the list if you're like "wait, I have more questions" (same) π.
COPYRIGHT AND LICENSE π
This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.
and that's the whole page, bestie π«Ά β rendered by perl v5.42.0 on 2025-01-22, from the file DBIx::C...y::Table(3). mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class 0.082844-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms