|
Oak::Filer::DBI - Filer to save/load data into/from DBI tables |
Oak::Filer::DBI - Filer to save/load data into/from DBI tables
This module provides access for saving data into a DBI table, to be used by a Persistent descendant to save its data. Must pass table, and where
load(FIELD,FIELD,...)see Oak::IO::DBI::do_sql for possible exceptions.
see Oak::IO::DBI::do_sql for possible exceptions.
see Oak::IO::DBI::do_sql for possible exceptions.
see Oak::IO::DBI::do_sql for possible exceptions.
require Oak::Filer::DBI;
my $filer = new Oak::Filer::DBI
(
io => $iodbiobj, # mandatory, an Oak::IO::DBI object.
table => "tablename", # mandatory to enable load and store.
# table to work in selects and updates
where => {primary => value},# this is optional, once itsn't passed
# you assumes that u're creating a new object
)
my $nome = $filer->load("nome");
$filer->store(nome => lc($nome));
Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com> and Rodolfo Sikora <rodolfo@trevas.net>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
Oak::Filer::DBI - Filer to save/load data into/from DBI tables |