use Lingua::EN::Inflect::Phrase ();
use String::ToIdentifier::EN ();
use String::ToIdentifier::EN::Unicode ();
-use File::Temp ();
use Class::Unload;
-use Class::Inspector ();
+use Class::Inspector;
use Scalar::Util 'looks_like_number';
use DBIx::Class::Schema::Loader::Column;
use DBIx::Class::Schema::Loader::Utils qw/split_name dumper_squashed eval_package_without_redefine_warnings class_path slurp_file sigwarn_silencer firstidx uniq/;
use DBIx::Class ();
use Encode qw/encode decode/;
use List::Util qw/all any none/;
-use File::Temp 'tempfile';
+use File::Temp qw/tempfile tempdir/;
+
use namespace::clean;
our $VERSION = '0.07047';
croak "dry_run can only be used with static schema generation"
if $self->dynamic and $self->dry_run;
- $self->{temp_directory} ||= File::Temp::tempdir( 'dbicXXXX',
- TMPDIR => 1,
- CLEANUP => 1,
- );
+ $self->{temp_directory} ||= tempdir( 'dbicXXXX',
+ TMPDIR => 1,
+ CLEANUP => 1,
+ );
$self->{dump_directory} ||= $self->{temp_directory};
use Try::Tiny;
use List::Util 'any';
use Carp::Clan qw/^DBIx::Class/;
-use namespace::clean;
use DBIx::Class::Schema::Loader::Table ();
+use namespace::clean;
our $VERSION = '0.07047';
DBIx::Class::Schema::Loader::DBI
/;
use mro 'c3';
-
use List::Util 'any';
-use namespace::clean;
-
use DBIx::Class::Schema::Loader::Table ();
+use namespace::clean;
our $VERSION = '0.07047';
use Scalar::Util 'looks_like_number';
use List::Util 'any';
use Try::Tiny;
-use namespace::clean;
use DBIx::Class::Schema::Loader::Table::Informix ();
+use namespace::clean;
our $VERSION = '0.07047';
use mro 'c3';
use Carp::Clan qw/^DBIx::Class/;
use List::Util 'first';
-use namespace::clean;
use DBIx::Class::Schema::Loader::Table ();
+use namespace::clean;
our $VERSION = '0.07047';
use mro 'c3';
use Try::Tiny;
use List::Util 'any';
-use namespace::clean;
-
use DBIx::Class::Schema::Loader::Table::Sybase ();
+use namespace::clean;
our $VERSION = '0.07047';
use base 'DBIx::Class::Schema::Loader::DBI::ODBC';
use mro 'c3';
use Try::Tiny;
-use namespace::clean;
use DBIx::Class::Schema::Loader::Table ();
+use namespace::clean;
our $VERSION = '0.07047';
use base 'DBIx::Class::Schema::Loader::DBI::Component::QuotedDefault';
use mro 'c3';
use List::Util 'any';
-use namespace::clean;
use DBIx::Class::Schema::Loader::Table ();
+use namespace::clean;
our $VERSION = '0.07047';
use base 'DBIx::Class::Schema::Loader::DBI::Sybase::Common';
use mro 'c3';
use List::Util 'any';
-use namespace::clean;
-
use DBIx::Class::Schema::Loader::Table::Sybase ();
+use namespace::clean;
our $VERSION = '0.07047';
use Try::Tiny;
use Scalar::Util 'blessed';
use DBIx::Class::Schema::Loader::Utils qw/sigwarn_silencer/;
-use namespace::clean;
use DBIx::Class::Schema::Loader::Table ();
+use namespace::clean;
our $VERSION = '0.07047';
use DBIx::Class::Schema::Loader::Utils qw/split_name slurp_file array_eq apply uniq/;
use Try::Tiny;
use List::Util qw/all any first/;
-use namespace::clean;
-use Lingua::EN::Inflect::Phrase ();
-use Lingua::EN::Tagger ();
+use Lingua::EN::Inflect::Phrase qw(to_PL to_S);
+use Lingua::EN::Tagger;
use String::ToIdentifier::EN ();
use String::ToIdentifier::EN::Unicode ();
-use Class::Unload ();
-use Class::Inspector ();
+use Class::Unload;
+use Class::Inspector;
+use namespace::clean;
our $VERSION = '0.07047';
my ($self, $name) = @_;
$name =~ s/_/ /g;
- my $plural = Lingua::EN::Inflect::Phrase::to_PL($name);
+ my $plural = to_PL($name);
$plural =~ s/ /_/g;
return $plural;
my ($self, $name) = @_;
$name =~ s/_/ /g;
- my $singular = Lingua::EN::Inflect::Phrase::to_S($name);
+ my $singular = to_S($name);
$singular =~ s/ /_/g;
return $singular;
use base 'DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_06';
use mro 'c3';
use DBIx::Class::Schema::Loader::Utils 'array_eq';
-use namespace::clean;
use Lingua::EN::Inflect::Number ();
+use namespace::clean;
our $VERSION = '0.07047';
use String::CamelCase 'wordsplit';
use Carp::Clan qw/^DBIx::Class/;
use List::Util 'all';
-use namespace::clean;
-use Exporter 'import';
use Data::Dumper ();
+use base 'Exporter';
+use namespace::clean;
+
our @EXPORT_OK = qw/split_name dumper dumper_squashed eval_package_without_redefine_warnings class_path no_warnings warnings_exist warnings_exist_silent slurp_file write_file array_eq sigwarn_silencer apply firstidx uniq/;
use Getopt::Long;
use Pod::Usage;
use DBIx::Class::Schema::Loader 'make_schema_at';
-use namespace::clean;
use DBIx::Class::Schema::Loader::Base ();
use DBIx::Class::Schema::Loader::Optional::Dependencies ();
require lib;
use Test::Exception;
use Try::Tiny;
use File::Path 'rmtree';
-use namespace::clean;
use lib qw(t/lib);
use dbixcsl_common_tests ();
use Try::Tiny;
use File::Path 'rmtree';
use String::ToIdentifier::EN::Unicode 'to_identifier';
-use namespace::clean;
use lib qw(t/lib);
use dbixcsl_common_tests ();
use File::Path 'rmtree';
use DBIx::Class::Schema::Loader 'make_schema_at';
use DBIx::Class::Schema::Loader::Utils qw/sigwarn_silencer/;
-use namespace::clean;
use DBI ();
use lib qw(t/lib);
use Try::Tiny;
use File::Path 'rmtree';
use DBIx::Class::Schema::Loader 'make_schema_at';
-use namespace::clean;
use Scope::Guard ();
# use this if you keep a copy of DBD::Sybase linked to FreeTDS somewhere else
use DBIx::Class::Schema::Loader 'make_schema_at';
use DBIx::Class::Schema::Loader::Utils 'split_name';
use String::ToIdentifier::EN::Unicode 'to_identifier';
-use namespace::clean;
use lib qw(t/lib);
use warnings;
use Test::More;
use DBIx::Class::Schema::Loader::Utils qw/slurp_file write_file/;
-use namespace::clean;
use File::Temp ();
use lib qw(t/lib);
use dbixcsl_dumper_tests;
+
my $t = 'dbixcsl_dumper_tests';
$t->cleanup;
use File::Path qw/make_path rmtree/;
use DBIx::Class::Schema::Loader::Utils 'slurp_file';
use Try::Tiny;
-use namespace::clean;
use lib 't/lib';
use make_dbictest_db ();
use dbixcsl_test_dir '$tdir';
use Test::More;
use DBIx::Class::Schema::Loader::Utils 'slurp_file';
use File::Path 'rmtree';
-use namespace::clean;
use lib 't/lib';
use make_dbictest_db ();
use dbixcsl_test_dir '$tdir';
use DBIx::Class::Schema::Loader::Utils 'dumper_squashed';
use DBIx::Class::Schema::Loader ();
use Class::Unload ();
-use namespace::clean;
-
use dbixcsl_test_dir '$tdir';
+use namespace::clean;
my $DUMP_PATH = "$tdir/dump";
use File::Path 'rmtree';
use File::Temp 'tempdir';
use Scalar::Util 'weaken';
-use namespace::clean;
use DBI ();
+use namespace::clean;
use base qw/Exporter/;
our @EXPORT_OK = '$tdir';