cvs: peardoc /en/package/database/db/db-common autoexecute.xml autoprepare.xml execute.xml executemultiple.xml prepare.xml
| From: | Daniel Convissor | Date: | Thu, 15 Apr 2004 23:34:24 +0000 |
| Subject: | cvs: peardoc /en/package/database/db/db-common autoexecute.xml autoprepare.xml execute.xml executemultiple.xml prepare.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-3517@lists.php.net to get a copy of this message | ||
danielc Thu Apr 15 19:34:24 2004 EDT
Modified files:
/peardoc/en/package/database/db/db-common autoexecute.xml
autoprepare.xml
execute.xml
executemultiple.xml
prepare.xml
Log:
Clarify description.
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/autoexecute.xml?r1=1.25&r2=1.26&ty=u
Index: peardoc/en/package/database/db/db-common/autoexecute.xml
diff -u peardoc/en/package/database/db/db-common/autoexecute.xml:1.25
peardoc/en/package/database/db/db-common/autoexecute.xml:1.26
--- peardoc/en/package/database/db/db-common/autoexecute.xml:1.25 Thu Apr 15 18:22:52 2004
+++ peardoc/en/package/database/db/db-common/autoexecute.xml Thu Apr 15 19:34:24 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.25 $ -->
+<!-- $Revision: 1.26 $ -->
<refentry id="package.database.db.db-common.autoexecute">
<refnamediv>
@@ -31,18 +31,16 @@
<refsect1 id="package.database.db.db-common.autoexecute.desc">
&title.desc;
<para>
- <function>autoExecute</function> build automatically an insert or an
- update sql query and call
- <link linkend="package.database.db.db-common.prepare">
- <function>prepare</function></link> and
+ Automatically prepares and executes <command>INSERT</command> or
+ <command>UPDATE</command> queries.
+ </para>
+ <para>
+ This method builds a SQL statement using
+ <link linkend="package.database.db.db-common.autoprepare">
+ <function>autoPrepare</function></link> and then executes
+ the statement using
<link linkend="package.database.db.db-common.execute">
<function>execute</function></link> with it.
- The sql query is build by using
- <link linkend="package.database.db.db-common.autoprepare">
- <function>autoPrepare</function></link>.
- To call autoExecute, you need only an assoc (key => value)
- where keys are fields names and values are corresponding
- values of these fields.
</para>
</refsect1>
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/autoprepare.xml?r1=1.23&r2=1.24&ty=u
Index: peardoc/en/package/database/db/db-common/autoprepare.xml
diff -u peardoc/en/package/database/db/db-common/autoprepare.xml:1.23
peardoc/en/package/database/db/db-common/autoprepare.xml:1.24
--- peardoc/en/package/database/db/db-common/autoprepare.xml:1.23 Thu Apr 15 18:22:52 2004
+++ peardoc/en/package/database/db/db-common/autoprepare.xml Thu Apr 15 19:34:24 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.23 $ -->
+<!-- $Revision: 1.24 $ -->
<refentry id="package.database.db.db-common.autoprepare">
<refnamediv>
@@ -31,10 +31,11 @@
<refsect1 id="package.database.db.db-common.autoprepare.desc">
&title.desc;
<para>
- <function>autoPrepare</function> build automatically an insert or an update sql
query and
- call <link linkend="package.database.db.db-common.prepare">
- <function>prepare</function></link>with it.
- The sql query is build by using an ordered array containing fields names.
+ Automatically builds an <command>INSERT</command> or
+ <command>UPDATE</command> SQL statement so it can
+ later be used by
+ <link linkend="package.database.db.db-common.execute">
+ <function>execute</function></link>.
</para>
</refsect1>
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/execute.xml?r1=1.23&r2=1.24&ty=u
Index: peardoc/en/package/database/db/db-common/execute.xml
diff -u peardoc/en/package/database/db/db-common/execute.xml:1.23
peardoc/en/package/database/db/db-common/execute.xml:1.24
--- peardoc/en/package/database/db/db-common/execute.xml:1.23 Thu Apr 15 18:25:18 2004
+++ peardoc/en/package/database/db/db-common/execute.xml Thu Apr 15 19:34:24 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.23 $ -->
+<!-- $Revision: 1.24 $ -->
<refentry id="package.database.db.db-common.execute">
<refnamediv>
@@ -24,10 +24,11 @@
<refsect1 id="package.database.db.db-common.execute.desc">
&title.desc;
<para>
- <function>execute</function> joins the prepared SQL statment
- from <link linkend="package.database.db.db-common.prepare">
- <function>prepare</function></link> with the given data and
- runs the SQL query.
+ Merges the SQL statment you submitted to
+ <link linkend="package.database.db.db-common.prepare">
+ <function>prepare</function></link>
+ with the information in <parameter>$data</parameter>
+ and then sends the query to the database.
</para>
</refsect1>
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/executemultiple.xml?r1=1.22&r2=1.23&ty=u
Index: peardoc/en/package/database/db/db-common/executemultiple.xml
diff -u peardoc/en/package/database/db/db-common/executemultiple.xml:1.22
peardoc/en/package/database/db/db-common/executemultiple.xml:1.23
--- peardoc/en/package/database/db/db-common/executemultiple.xml:1.22 Thu Apr 15 18:25:18 2004
+++ peardoc/en/package/database/db/db-common/executemultiple.xml Thu Apr 15 19:34:24 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.22 $ -->
+<!-- $Revision: 1.23 $ -->
<refentry id="package.database.db.db-common.executemultiple">
<refnamediv>
@@ -24,11 +24,13 @@
<refsect1 id="package.database.db.db-common.executemultiple.desc">
&title.desc;
<para>
- <function>executeMultiple</function> joins the prepared SQL statment
- from <link linkend="package.database.db.db-common.prepare">
- <function>prepare</function></link> with the given data and does the
- SQL query for every <quote>row</quote> in the
- <parameter>$data</parameter> array.
+ Automatically passes the information in
+ <parameter>$data</parameter> (a multi-dimensional array) to
+ <link linkend="package.database.db.db-common.execute">
+ <function>execute</function></link>, which then runs
+ the SQL statment you submitted to
+ <link linkend="package.database.db.db-common.prepare">
+ <function>prepare</function></link>.
</para>
</refsect1>
http://cvs.php.net/diff.php/peardoc/en/package/database/db/db-common/prepare.xml?r1=1.19&r2=1.20&ty=u
Index: peardoc/en/package/database/db/db-common/prepare.xml
diff -u peardoc/en/package/database/db/db-common/prepare.xml:1.19
peardoc/en/package/database/db/db-common/prepare.xml:1.20
--- peardoc/en/package/database/db/db-common/prepare.xml:1.19 Thu Apr 15 18:25:18 2004
+++ peardoc/en/package/database/db/db-common/prepare.xml Thu Apr 15 19:34:24 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.19 $ -->
+<!-- $Revision: 1.20 $ -->
<refentry id="package.database.db.db-common.prepare">
<refnamediv>
@@ -21,7 +21,7 @@
<refsect1 id="package.database.db.db-common.prepare.desc">
&title.desc;
<para>
- Prepares a query for execution with
+ Gets a SQL statement ready so it can be run by
<link linkend="package.database.db.db-common.execute">
<function>execute</function></link>.
</para>