It also has some other fun properties that i'm currently experimenting with.
Just right now I am in trying to switch the framework (Cat. to Mojolicious), switch the database (My to Pg), and return to proper SQL sentences after three years in a boring full schema ORM way of life. Three in a row!
Thank you very much. This is the extra push I needed:
Nacho B
Can somebody help me with code which adds using a db helper from startup method from a full mojo application in a my own model Users?in growing manual we have a $USERS hash helper, which must be changed to $self->db-> ... query to current db helper, but I can't write this fragment of code, because newbie in perl and mojo.
...and support for migrations is missing.
Experimenting with something now.Simple migrations in the DATA section are really fun. :)
And released with Mojo::Pg 0.04.
P.S.: And before anyone asks... nope there is no chance they will go into a separate distribution and become database agnostic, i'm using PostgreSQL features quite extensively.
# Select all rows non-blockingMojo::IOLoop->delay( sub { my $delay = shift; $db->query('select * from names' => $delay->begin); }, sub { my ($delay, $err, $results) = @_; $results->hashes->pluck('name')->join("\n")->say; }--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious...@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.
Windows 8Perl : (v5.16.3, MSWin32)
Mojolicious : 5.49
Mojo-Pg : 0.06
Mojo::Reactor::Poll: Timer be5d85eb26e795680ba9a94d8d356dcc failed: Can't use an undefined value as a symbol reference at C:/Perl64/site/lib/Mojo/Reactor/Poll.pm line 16.
Oh i just remembered something, PostgreSQL might be using named pipes on Windows, which don't work with the poll() system call.
--
I added this line in the script - print Dumper( $dbh->{pg_socket} ); - and I get$VAR1 = 196;
--