dbsrgits / dbix-class-schema-loader

Official GitHub remote for git.shadowcat.co.uk DBIx-Class-Schema-Loader.git
http://dbix-class.org/
11 stars 34 forks source link

getting this Error [rt.cpan.org #97674] #33

Open rabbiveesh opened 1 year ago

rabbiveesh commented 1 year ago

Migrated from rt.cpan.org#97674 (status was 'new')

Requestors:

From satish_mp@spanservices.com on 2014-08-01 16:30:49 :

Hello Team,

I am trying to build a small demo application using Mojolcious and
DBIx::Class. 
Here I am trying to run this script, which I have attached for reference.

D:\learning\perl_practice_scripts\tech_utsav>perl script\generate_schema
0.07040
Bizarre copy of UNKNOWN in scalar assignment at C:/Dwimperl/perl/site/lib/DBIx
/Class/Schema/Loader/Base.pm line 1059.

and the perl.exe gets hanged, stops working.

Please let me know your inputs or suggestions.
I have referred this link: "https://github.com/tempire/MojoExample/"

I have working schema for both sqlite3 and mysql. generate_script is something
like this:
##-----------------------------------------------------------##
use Modern::Perl;
use DBIx::Class::Schema::Loader 'make_schema_at';

my $DEBUG = @ARGV and $ARGV[0] =~ /^\-[\-]*v/;

say $DBIx::Class::Schema::Loader::VERSION ;#if $DEBUG;
my @dsn = 'dbi:SQLite:dbname=techutsav.db';

my $options = {
  debug          => $DEBUG,
  dump_directory => 'lib',
  components     => [qw/InflateColumn::DateTime /],
  generate_pod   => 0,
};
make_schema_at(Schema => $options, \@dsn);
##-----------------------------------------------------------

Regards,
Satish.

DISCLAIMER: This email message and all attachments are confidential and may
contain information that is Privileged, Confidential or exempt from disclosure
under applicable law. If you are not the intended recipient, you are notified
that any dissemination, distribution or copying of this email is strictly
prohibited.  If you have received this email in error, please notify us
immediately by return email to mailadmin@spanservices.com and destroy the
original message.  Opinions, conclusions and other information in this message
that do not relate to the official of SPAN, shall be understood to be nether
given nor endorsed by SPAN.