use DBIx::Class::Schema::Loader "make_schema_at"; die "Give DB connection args! E.g.:\n", " dbi:mysql:someTable user password \n", " 'dbi:mysql:moo_moo;mysql_read_default_file=~/.my.cnf'\n" unless @ARGV; $ARGV[3] = { quote_char => "`" }; # Useful tidbit not (obvious) in the docs. make_schema_at( $insert_schema_class, { components => [qw( SomethingYouUse )], quote_char => "`", dump_directory => $target_lib, use_namespaces => 1, }, \@ARGV );