DBIx::C...opulate(3)
π NAME π
DBIx::Class::Migration::Script::Help::populate β Install fixtures to a database. Okay so this is the DBIx::Class::Migration::Script::Help::populate(3) page, and its whole main character job is literally putting fixtures into a database. Slay. π
β¨ SYNOPSIS β¨
dbic-migration populate --fixture_set core --fixture_set countries
πΈ DESCRIPTION πΈ
Okay so here's the tea: this installs a prepared migration to either the current schema version or the target version specified via to_version, into the database connected via the dsn, username in DBIx::Class::Migration::Script and password in DBIx::Class::Migration::Script β or into a developer level sandbox as defined by the sandbox_class in DBIx::Class::Migration::Script. β¨
And likeβ¦ you can't install to a database if the tables already exist, bestie. That's not a vibe. See drop_tables. π
π OPTIONS π
This command takes the options below. Wanna know more about any one of them? Type dbic-migration help OPTION and it'll spill. Here's the summary.
fixture_sets(fixture_sets) β Required. The fixture configuration set names β basically these are the file names of your fixture configurations, without the'.json'part. πincludes(aliases:I,lib,libs,include) β Optional. Adds the listed paths to@INC. Handy during development when you want to use a development schema class.schema_class(S) β Accepts Str. Required. This is the schema we use as the basis for creating, managing and running your deployments. This should be the full package namespace defining your subclass ofDBIx::Class::Schema. For exampleMyApp::Schema. If theschema_classcannot be loaded, a hard exception will be thrown. πtarget_dir(D) β Optional. When using asandbox_classfor generating developer level database sandboxes, you may wish to place the sandbox in a directory other than the default (which is under thesharedirectory off the project root).sandbox_classβ Aliases:T,sb. Accepts: String (default:SqliteSandbox). The class we use to create a developer level database sandbox. You can change this to either'PostgresqlSandbox'or'MySQLSandbox', which will create a sandbox using eitherDBIx::Class::Migration::MySQLSandboxorDBIx::Class::Migration::PostgresqlSandbox. πuserβ Aliases:U.passwordβ Aliases:P.dsnβ Connection information to an already created and running instance of a database. If you don't specify this, we will assume you want a developer level sandbox (Seesandbox_classinDBIx::Class::Migration::Script). π«Άdbic_fixture_classβ Accepts: String to a Perl Class. Defaults toDBIx::Class::Fixtures. Lets you specify a fixture class.dbic_fixtures_extra_argsβ Accepts: HashRef. Optional. Allows you to pass custom arguments toDBIx::Class::Fixtures.
π¦ SEE ALSO π¦
DBIx::Class::MigrationDBIx::Class::Migration::ScriptDBIx::Class::Migration::FeaturesDBIx::Class::Migration::Tutorial
π AUTHOR π
See DBIx::Class::Migration for author information. Go check it, iykyk. π
π COPYRIGHT & LICENSE π
See DBIx::Class::Migration for copyright and license information.
Okay bestie, that's the whole page! This lil manual moment 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