Help language development. Donate to The Perl Foundation

DB::Pg cpan:CTILMES last updated on 2021-07-02

eg/json.raku
#!/usr/bin/env raku

use DB::Pg;
use DB::Pg::Converter::JSON;

my $pg = DB::Pg.new;

$pg.converter does DB::Pg::Converter::JSON;

dd $pg.query(Q<select '{"a":12,"b":"this"}'::json>).value;