|
DBX::Recordset - abstracts a DBX query result |
DBX::Recordset - abstracts a DBX query result
use DBX;
$conn = DBX->mysql("database=test;host=localhost;", "", "");
$rs = $conn->query("SELECT * FROM test");
while($rs)
{
print $rs->field("client") . "\n";
$rs->field("client", "test");
$rs->move_next;
}
DBX::Recordset is the heart of the DBX and provides most of its additional functionality. Recordsets are returned by the query method of a the DBX::Connection manpage object.
Recordsets support simple forward-only cursors (at the moment) and allow you to easily retrieve and/or modify fields.
if($rs) is equivalent to if($rs-eof)>.
update() is called or the cursor moves.
update is automatically called when the cursor is moved.
Requires the DBX manpage and all of its dependencies
the DBI manpage, the DBX manpage, the DBX::Connection manpage
Bill Atkins, <dbxNOSPAM@batkins.com>
Copyright 2003 by Bill Atkins
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
DBX::Recordset - abstracts a DBX query result |