Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#! /usr/bin/env perl
# Mojolicious 8.17
# PostgreSQL 9.5.14
use 5.022;
use Mojo::Pg;
use UUID;
# as seen in
my $pg = Mojo::Pg->new('postgresql://'.$ENV{USER}.'@/tapdomdb_test');
my $h = $pg->db->insert('tap_dom', {uuid => UUID::uuid})->hash; # missing { returning => 'tap_dom_id' }
# actually I want the just created ->{id} but the ->hash already fails:
# DBD::Pg::st fetchrow_hashref failed: no statement executing at ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.