in reply to Re: Re: Re: It's bad manners to slurp
in thread It's bad manners to slurp
It would probably be possible to encode this in the driver so you could pass an attribute to prepare {pg_use_cursor =>1}.$db->do("declare imprecator CURSOR FOR select * from test"); $c = $db->prepare("FETCH 100 FROM imprecator") for (1..10) { # I have a more robust example somewhere $c->execute(); print Data::Dumper::Dumper($c->fetchall_arrayref()) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: It's bad manners to slurp
by eserte (Deacon) on Apr 29, 2004 at 17:12 UTC | |
by samtregar (Abbot) on Apr 29, 2004 at 20:03 UTC | |
by eserte (Deacon) on Apr 30, 2004 at 12:24 UTC | |
|
Re: Re: Re: Re: Re: It's bad manners to slurp
by samtregar (Abbot) on Apr 29, 2004 at 17:06 UTC |