### ----------------------------------------------------
### -- Duckie
### -- Licenses: MIT
### -- Authors: Brian Duggan
### -- File: t/06-duckie-rows.rakutest
### ----------------------------------------------------
#!/usr/bin/env raku

use Duckie;
use Test;
use Log::Async;
plan 2;

logger.add-tap: { diag .<level>.lc ~ ': ' ~ .<msg> }, :level(* >= DEBUG);

my $db = Duckie.new;
my $res = $db.query("select * from test_all_types()");
my @rows = $res.rows;
is $res.rows.elems, 3, '3 rows in test';
is $res.rows[2].values.grep(*.defined).elems, 0, 'all NULLs in third row';


