down the road.
METHODS
+ loader_class
+ Argument: $loader_class
+
+ Set the loader class to be instantiated when "connection" is called. If
+ the classname starts with "::", "DBIx::Class::Schema::Loader" is
+ prepended. Defaults to "storage_type" in DBIx::Class::Schema (which must
+ start with "::" when using DBIx::Class::Schema::Loader).
+
+ This is mostly useful for subclassing existing loaders or in conjunction
+ with "dump_to_dir".
+
loader_options
+ Argument: \%loader_options
+
Example in Synopsis above demonstrates a few common arguments. For
detailed information on all of the arguments, most of which are only
useful in fairly complex scenarios, see the
after the connection has already been made is useless.
connection
- See DBIx::Class::Schema for basic usage.
+ Arguments: @args
+ Return Value: $new_schema
- If the final argument is a hashref, and it contains a key
- "loader_options", that key will be deleted, and its value will be used
- for the loader options, just as if set via the "loader_options" method
- above.
+ See "connection" in DBIx::Class::Schema for basic usage.
+
+ If the final argument is a hashref, and it contains the keys
+ "loader_options" or "loader_class", those keys will be deleted, and
+ their values value will be used for the loader options or class,
+ respectively, just as if set via the "loader_options" or "loader_class"
+ methods above.
The actual auto-loading operation (the heart of this module) will be
invoked as soon as the connection information is defined.
clone
- See DBIx::Class::Schema.
+ See "clone" in DBIx::Class::Schema.
dump_to_dir
- Argument: directory name.
+ Argument: $directory
Calling this as a class method on either DBIx::Class::Schema::Loader or
any derived schema class will cause all affected schemas to dump manual
My::OtherSchema->connection(.......);
make_schema_at
+ Arguments: $schema_name, \%loader_options, \@connect_info
+ Return Value: $schema_name
+
This simple function allows one to create a Loader-based schema
in-memory on the fly without any on-disk class files of any kind. When
used with the "dump_directory" option, you can use this to generate a
);
rescan
+ Return Value: @new_monikers
+
Re-scans the database for newly added tables since the initial load, and
adds them to the schema at runtime, including relationships, etc. Does
not process drops or changes.