DBIx::C...med_sets(3)

πŸ“¦ version 0.075, in opensuse-leap 16.0

🌸 NAME 🌸

Okay bestie, welcome to DBIx::Class::Migration::Script::Help::delete_named_sets β€” the header squishes it down to DBIx::C...med_sets(3), iykyk. This page is literally about one thing: Delete dumped fixture sets. πŸ’…


✨ SYNOPSIS ✨

The command shape is giving exactly this:

dbic-migration --schema_class MyApp::Schema \
  delete_named_sets --fixture_set core --fixture_set countries

πŸ’– DESCRIPTION πŸ’–

No cap, this command is used to delete invalid, previously dumped fixtures for a given fixture configuration, under the current schema (not database!) version. Not the database version β€” the schema version. Periodt. πŸŽ€

Sometimes when you are dumping fixtures for the current version, you might make a mistake in the configuration set and want to re-dump them. That’s the moment this command shows up: it clears out existing sets. Slay. ✨

Since dumped fixtures just live on the filesystem, you can delete them using any normal filesystem tool, so we limit this potentially dangerous command to deleting on the current schema fixtures. Lowkey responsible of it. 🫢 You might use this command when working on prepping fixtures for a new version of the schema, for example.

πŸŽ€ OPTIONS πŸŽ€

This command accepts the following options. You may learn more about each option by typing dbic-migration help OPTION. The following is a 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 (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 of DBIx::Class::Schema. For example MyApp::Schema. If the schema_class cannot be loaded, a hard exception will be thrown. 😭
  • target_dir (D) β€” Optional. When using a sandbox_class for generating developer level database sandboxes, you may wish to place the sandbox in a directory other than the default (which is under the share directory off the project root). 🌈
  • dbic_fixture_class β€” Accepts: String to a Perl Class. Defaults to DBIx::Class::Fixtures. Lets you specify a fixture class. 🧚
  • dbic_fixtures_extra_args β€” Accepts: HashRef. Optional. Allows you to pass custom arguments to DBIx::Class::Fixtures. πŸ’œ

πŸ¦‹ SEE ALSO πŸ¦‹

  • DBIx::Class::Migration
  • DBIx::Class::Migration::Script
  • DBIx::Class::Migration::Features
  • DBIx::Class::Migration::Tutorial

Go read these, bestie β€” the whole ecosystem is right there. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

See DBIx::Class::Migration for author information.

See DBIx::Class::Migration for copyright and license information.


mwah πŸ’‹ β€” this page is from perl v5.42.0, dated 2020-06-03, and the footer name is DBIx::C...med_sets(3).

πŸ“¦ where this page comes from