|
Oak::Filer::DBI - Filer to save/load data into/from DBI tables |
Oak::Filer::DBI - Filer to save/load data into/from DBI tables
require Oak::Filer::DBI;
my $filer = new Oak::Filer::DBI
(
dbdriver => "mysql", # mandatory, any supported by DBI
database => "mydatabase", # mandatory
hostname => "hostname", # mandatory
table => "tablename", # mandatory to enable load and store.
# table to work in selects and updates
where => {primary => value},# this option must be passed to
# enable load and store functions.
# name and value of the keys to where sql clause
username => "dbusername", # optional
password => "userpasswd", # optional
options => { DBI OPTIONS }, # optional. A hash reference to DBI options
share => 1 # Share the db connection with other Oak::Filer::DBI objects
)
my $nome = $filer->load("nome");
$filer->store(nome => lc($nome));
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, prikey and privalue
constructor(PARAMS)test_required_params(PARAMS)load(FIELD,FIELD,...)do_sql(SQL)
Too early to know...
Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com>. 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 |