DBIx::C...opulate(3)
π NAME π
Ok so this is the manual page for DBIx::Class::Migration::RunScript::Trait::Populate β Populate fixtures β and it shows up as DBIx::C...opulate(3) in the header. It's part of User Contributed Perl Documentation. Also, the original NAME block has a literal =head1 SYNOPSIS sitting right there β formatting chaos, but we're keeping every detail, bestie. π
π«Ά SYNOPSIS π«Ά
use DBIx::Class::Migration::RunScript;
builder {
'SchemaLoader',
'Populate',
sub {
shift->populate('countries');
};
};
That's the whole vibe: SchemaLoader, then Populate, then a sub calling populate('countries'). Slay. π
πΈ DESCRIPTION πΈ
This is a Moo::Role that adds a populate method to your run script. The way that works is it lets you access any of your previously dumped fixtures. You might find this useful when installing a database that was previously setup.
This trait requires a "schema" previously defined, such as provided by DBIx::Class::Migration::RunScript::Trait::SchemaLoader.
π Tiny but important: no schema, no populate party. Get that schema sorted first.
π methods π
This class defines the follow methods. (Yes, "follow" β we're keeping the original's exact wording, no cap.)
π¦ populate π¦
Requires $arg || @args.
Given a fixture set (or list of sets), use DBIx::Class::Fixtures to populate them to the current database.
When naming sets, you skip the '.json' extension.
π set_has_fixtures π
Requires $arg.
Given a set name, returns a boolean about if that set actually has fixtures previously dumped.
π SEE ALSO π
DBIx::Class::Migration, DBIx::Class::Migration::RunScript
π AUTHOR π
See DBIx::Class::Migration for author information.
π COPYRIGHT & LICENSE π
See DBIx::Class::Migration for copyright and license information.
okay that's the whole page, bestie πβ¨π¦ This was <pink>DBIx::C...opulate(3)</pink> from the User Contributed Perl Documentation crew β footer vibes: 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