Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move example
  • Loading branch information
kraih committed Jan 28, 2018
1 parent 7532eac commit 8112c33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Pg/Database.pm
Expand Up @@ -505,9 +505,6 @@ As well as some PostgreSQL specific extensions added by L<SQL::Abstract::Pg>.
# "select foo as bar from some_table"
$db->select('some_table', [[foo => 'bar']]);
# "select extract(epoch from foo) as foo, bar from some_table"
$db->select('some_table', [\'extract(epoch from foo) as foo', 'bar']);
# "select * from foo join bar on (bar.foo_id = foo.id)"
$db->select(['foo', ['bar', foo_id => 'id']]);
Expand All @@ -532,6 +529,9 @@ As well as some PostgreSQL specific extensions added by L<SQL::Abstract::Pg>.
# "select * from some_table where id = 1 for update skip locked"
$db->select('some_table', '*', {id => 1}, {for => \'update skip locked'});
# "select extract(epoch from foo) as foo, bar from some_table"
$db->select('some_table', [\'extract(epoch from foo) as foo', 'bar']);
=head2 select_p
my $promise = $db->select_p($source, $fields, $where, \%options);
Expand Down

0 comments on commit 8112c33

Please sign in to comment.