No subject


Sun Nov 20 20:48:46 GMT 2022


```
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 at 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.

```


-- 
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class-schema-loader/issues/33
You are receiving this because you are subscribed to this thread.

Message ID: <dbsrgits/dbix-class-schema-loader/issues/33 at github.com>
----==_mimepart_637a92d1f2594_3dd2c6701893780
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<p></p>
<p dir="auto">Migrated from <a href="https://rt.cpan.org/Ticket/Display.html?id=97674" rel="nofollow">rt.cpan.org#97674</a> (status was 'new')</p>
<p dir="auto">Requestors:</p>
<ul dir="auto">
<li><a href="mailto:satish_mp at spanservices.com">satish_mp at spanservices.com</a></li>
</ul>
<p dir="auto">From <a href="mailto:satish_mp at spanservices.com">satish_mp at spanservices.com</a> on 2014-08-01 16:30:49<br>
:</p>
<pre class="notranslate"><code class="notranslate">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&gt;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          =&gt; $DEBUG,
  dump_directory =&gt; 'lib',
  components     =&gt; [qw/InflateColumn::DateTime /],
  generate_pod   =&gt; 0,
};
make_schema_at(Schema =&gt; $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 at 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.

</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />Reply to this email directly, <a href="https://github.com/dbsrgits/dbix-class-schema-loader/issues/33">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AACJ4AXBCJCEXNEUWEDDLWLWJKFFDANCNFSM6AAAAAASGAVDOY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AACJ4ATHBC5MQN4EK5BRTYLWJKFFDA5CNFSM6AAAAAASGAVDO2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFNWFPXM.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span>&lt;dbsrgits/dbix-class-schema-loader/issues/33</span><span>@</span><span>github</span><span>.</span><span>com&gt;</span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/dbsrgits/dbix-class-schema-loader/issues/33",
"url": "https://github.com/dbsrgits/dbix-class-schema-loader/issues/33",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
----==_mimepart_637a92d1f2594_3dd2c6701893780--



More information about the DBIx-Class-Devel mailing list