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) πŸ’–.


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