[Jifty-commit] r1307 - in Jifty-DBI: . trunk/lib/Jifty/DBI
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Jun 16 14:27:23 EDT 2006
Author: zev
Date: Fri Jun 16 14:27:23 2006
New Revision: 1307
Modified:
Jifty-DBI/ (props changed)
Jifty-DBI/trunk/lib/Jifty/DBI.pm
Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm
Log:
r4093 at galvatron: zev | 2006-06-16 14:27:18 -0400
minor documentation corrections
Modified: Jifty-DBI/trunk/lib/Jifty/DBI.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI.pm (original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI.pm Fri Jun 16 14:27:23 2006
@@ -23,7 +23,7 @@
Jifty::DBI::Record abstracts the agony of writing the common and generally
simple SQL statements needed to serialize and De-serialize an object to the
database. In a traditional system, you would define various methods on
-your object 'create', 'readu', 'update', and 'delete' being the most common.
+your object 'create', 'read', 'update', and 'delete' being the most common.
In each method you would have a SQL statement like:
select * from table where value='blah';
@@ -38,7 +38,7 @@
Enter, Jifty::DBI::Record.
-With::Record, you can in the simple case, remove all of that code and
+With ::Record, you can in the simple case, remove all of that code and
replace it by defining two methods and inheriting some code. Its pretty
simple, and incredibly powerful. For more complex cases, you can, gasp,
do more complicated things by overriding certain methods. Lets stick with
@@ -136,7 +136,7 @@
=item load_by_cols
-Takes a hash of column =>value pairs and returns the *first* to match.
+Takes a hash of column => value pairs and returns the *first* to match.
First is probably lossy across databases vendors.
=item load_from_hash
@@ -182,8 +182,8 @@
it. In the future I hope to extend ::Record to better support transactional
operations, such that updates will only happen when "you" say so.
-Finally, adding a removing records from the database. ::Record provides a
-Create method which simply takes a hash of key=>value pairs. The keys
+Finally, adding and removing records from the database. ::Record provides a
+Create method which simply takes a hash of key => value pairs. The keys
exactly map to database columns.
## Get a new record object.
Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm (original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Schema.pm Fri Jun 16 14:27:23 2006
@@ -370,7 +370,7 @@
A sentence or two to display in long-form user interfaces about what
might go in this column. Correct usage is C<hints is 'Used by the
-frobnicator to to strange things'>.
+frobnicator to do strange things'>.
=cut
More information about the Jifty-commit
mailing list