|
From: Michael N. <mne...@us...> - 2002-07-03 19:24:30
|
Update of /cvsroot/ruby-dbi/src/lib/dbi/doc
In directory usw-pr-cvs1:/tmp/cvs-serv1868/doc
Modified Files:
DBD_SPEC DBI_SPEC
Log Message:
Added StatementHandle#[] and #[]=. Updated DBI and DBD specs.
Index: DBD_SPEC
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbi/doc/DBD_SPEC,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- DBD_SPEC 22 Oct 2001 16:01:30 -0000 1.4
+++ DBD_SPEC 3 Jul 2002 19:24:25 -0000 1.5
@@ -1,5 +1,5 @@
=begin
-= DBD Specification Version 0.2 (Draft)
+= DBD Specification Version 0.2.2 (Draft)
by Michael Neumann (ne...@s-...)
$Id$
@@ -163,7 +163,7 @@
--- []=( attr, value )
Set value of attribute ((*attr*)) to ((*value*)).
An attribute is e.g. "AutoCommit".
- Raise an NotSupportedError, if the database do not support an attribute.
+ Raise a NotSupportedError, if the database do not support an attribute.
The default implementation is to raise a NotSupportedError.
@@ -270,6 +270,18 @@
Return (({nil})) if no rows are available.
Defaults to multiple calls to (({fetch})).
+
+--- []( attr )
+ Return value of attribute ((*attr*)).
+
+ Defauls to return the value of (({@attr[attr]})).
+
+--- []=( attr, value )
+ Set value of attribute ((*attr*)) to ((*value*)).
+ Raise a NotSupportedError, if the database do not support an attribute.
+
+ The default implementation is to raise a NotSupportedError.
+
=end
Index: DBI_SPEC
===================================================================
RCS file: /cvsroot/ruby-dbi/src/lib/dbi/doc/DBI_SPEC,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- DBI_SPEC 26 Nov 2001 00:14:32 -0000 1.6
+++ DBI_SPEC 3 Jul 2002 19:24:25 -0000 1.7
@@ -1,5 +1,5 @@
=begin
-= DBI Interface Specification Version 0.2.1 (Draft)
+= DBI Interface Specification Version 0.2.2 (Draft)
by Michael Neumann (ne...@s-...)
$Id$
@@ -348,7 +348,9 @@
Note that the returned (({DBI::Row})) object is only a reference and
should be copied (dup) if it is stored elsewhere.
-
+--- [](attr)
+--- []=(attr)
+ Sets or gets the attribute ((*attr*)).
=end
|