Zinc::Memory
From Deep Thought
NAME
Zinc::Memory
DESCRIPTION
Remember stuff (persistent data store).
SYNOPSIS
REQUIRES
Recall()
Return what we had stored in the data set.
- Parameters
Required:
$_[0] = `table.field' The table and field from the table to return.Optional: (Named Parameters)
KEY : The key value for the row from which the field is returned. COLUMN : Name of the column holding the key. Defaults to the primary key column. If set to *, returns a hash reference containing all the fields WHERE : An anonymous array of literal where clauses. All clauses are AND-ed together. NEXT : Get next record in a set LIMIT : Limit of records to fetch ORDER : Order By- Examples
Recall('users.user_id'); # Assume `user_id' is the primary key column. Recall('users.user_name', KEY => $user_id); Recall('users.*', KEY => $user_id); Recall('users.user_name', KEY => $user_password, COLUMN => 'user_pwd'); Recall('users.user_name', WHERE => [ 'user_level > 10' ]); my $name = Recall('users.user_name', KEY => $user_password, COLUMN => 'user_pwd'); while ($newname = Recall('users.user_name', NEXT)) { }
Forget()
Removes a row from the database based on the value of a particular field.
- Parameters
(Required) $_[0] = `table.field' or `table' (Optional) $_[1] = Key- Assumptions
If the optional key argument is not provided, it is assumed that the key is in the Directive property of the Directory. If only the `table' name is provided and not `table.field', the field will be the first primary key column returned by the DBI.
Browser()
Return a CGI variable from the Director->{WebIO} object that we are attached to.
Example: $self->DoSomethingCool($self->Browser('formentry'));
NOTES
None.
EXAMPLES
None.
AUTHOR
Cyber Sprocket Labs, Advanced Internet Technology Consultants Contact info@cybersprocket.com for more info.
ABOUT CSL
Cyber Sprocket Labs (CSL) is and advanced internet technology consulting firm based in Charleston South Carolina. We provide custom software, database, and consulting services for small to mid-sized businesses. For more information, or to schedule a consult, visit our website at www.cybersprocket.com
CONTRIBUTIONS
Like the script and want to contribute? You can send payments via credit card or bank transfer using PayPal and sending money to our paypal@cybersprocket.com PayPal address.
COPYRIGHT
(c) 2008, Cyber Sprocket Labs This script is covered by the GNU GENERAL PUBLIC LICENSE. View the license at http://www.gnu.org/copyleft/gpl.html
REVISION HISTORY
v0.1 - May 2007
First go.
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
- Around line 180:
-
You forgot a '=back' before '=head2'
- Around line 226:
-
You forgot a '=back' before '=head2'
