DBIx::C...aLoader(3)
π NAME π
okay so bestie, meet DBIx::Class::Migration::RunScript::Trait::SchemaLoader β yes, say that five times fast, i dare you π β and its whole tagline is βGive your Run Script a Schema.β iconic.
β¨ SYNOPSIS β¨
here's the group-chat recap: you use the run script thing, then call builder with 'SchemaLoader' and a sub. that sub shifts, grabs schema, hits the Country resultset, and populates it. no cap, it's giving database setup:
use DBIx::Class::Migration::RunScript;
builder {
'SchemaLoader',
sub {
shift->schema->resultset('Country')
->populate([
['code'],
['bel'],
['deu'],
['fra'],
]);
};
};
πΈ DESCRIPTION πΈ
This is a Moo::Role that adds a schema attribute to your DBIx::Class::Migration::RunScript. and the schema? it's generated via DBIx::Class::Schema::Loader, so it stays consistent to your actual deployed database structure. not dependent on your actual code β that's the whole point, bestie. π
π ATTRIBUTES π
This class defines the follow attributes (yes, βfollowβ β we're keeping the typo, it's part of the lore):
schema
Using DBIx::Class::Schema::Loader create a DBIx::Class::Schema that represents the connected database. that's it. the attribute ate and left no crumbs. π
π¦ SEE ALSO π¦
DBIx::Class::MigrationDBIx::Class::Migration::RunScript
go read these when you're done, iykyk. β¨
π AUTHOR π
See DBIx::Class::Migration for author information.
π COPYRIGHT & LICENSE π
See DBIx::Class::Migration for copyright and license information.
cute sign-off: this page is from perl v5.42.0, dated 2020-06-03 π periodt.
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class-Migration 0.075-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