[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-copy-from.xml pg-copy-to.xml pg-host.xml pg-options.xml pg-port.xml pg-trace.xml pg-untrace.xml

2005-04-25 Thread Christopher Kings-Lynne
chriskl Mon Apr 25 05:00:52 2005 EDT

  Modified files:  
/phpdoc/en/reference/pgsql/functionspg-copy-from.xml 
pg-copy-to.xml pg-host.xml 
pg-options.xml pg-port.xml 
pg-trace.xml pg-untrace.xml 
  Log:
  - Fix CRLF line endings.  Sorry :(
  http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-copy-from.xml?r1=1.8r2=1.9ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-copy-from.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-copy-from.xml:1.8 
phpdoc/en/reference/pgsql/functions/pg-copy-from.xml:1.9
--- phpdoc/en/reference/pgsql/functions/pg-copy-from.xml:1.8Mon Apr 25 
04:59:03 2005
+++ phpdoc/en/reference/pgsql/functions/pg-copy-from.xmlMon Apr 25 
05:00:51 2005
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.8 $ --
+!-- $Revision: 1.9 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --
 refentry id='function.pg-copy-from'
  refnamediv
@@ -94,13 +94,13 @@
 programlisting role=php
 ![CDATA[
 ?php
-   $db = pg_connect(dbname=publisher) or die(Could not connect);
-   
-   $rows = pg_copy_to($db, $table_name);
-   
-   pg_query($db, DELETE FROM $table_name);
-   
-   pg_copy_from($db, $table_name, $rows);
+   $db = pg_connect(dbname=publisher) or die(Could not connect);
+   
+   $rows = pg_copy_to($db, $table_name);
+   
+   pg_query($db, DELETE FROM $table_name);
+   
+   pg_copy_from($db, $table_name, $rows);
 ?
 ]]
 /programlisting
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-copy-to.xml?r1=1.8r2=1.9ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-copy-to.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-copy-to.xml:1.8 
phpdoc/en/reference/pgsql/functions/pg-copy-to.xml:1.9
--- phpdoc/en/reference/pgsql/functions/pg-copy-to.xml:1.8  Mon Apr 25 
04:59:03 2005
+++ phpdoc/en/reference/pgsql/functions/pg-copy-to.xml  Mon Apr 25 05:00:51 2005
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.8 $ --
+!-- $Revision: 1.9 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --
 refentry id='function.pg-copy-to'
  refnamediv
@@ -83,13 +83,13 @@
 programlisting role=php
 ![CDATA[
 ?php
-   $db = pg_connect(dbname=publisher) or die(Could not connect);
-   
-   $rows = pg_copy_to($db, $table_name);
-   
-   pg_query($db, DELETE FROM $table_name);
-   
-   pg_copy_from($db, $table_name, $rows);
+   $db = pg_connect(dbname=publisher) or die(Could not connect);
+   
+   $rows = pg_copy_to($db, $table_name);
+   
+   pg_query($db, DELETE FROM $table_name);
+   
+   pg_copy_from($db, $table_name, $rows);
 ?
 ]]
 /programlisting
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-host.xml?r1=1.5r2=1.6ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-host.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-host.xml:1.5 
phpdoc/en/reference/pgsql/functions/pg-host.xml:1.6
--- phpdoc/en/reference/pgsql/functions/pg-host.xml:1.5 Fri Apr 15 04:40:12 2005
+++ phpdoc/en/reference/pgsql/functions/pg-host.xml Mon Apr 25 05:00:51 2005
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.5 $ --
+!-- $Revision: 1.6 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --
 refentry id=function.pg-host
  refnamediv
@@ -56,15 +56,15 @@
 titlefunctionpg_host/function example/title
 programlisting role=php
 ![CDATA[
-?php
-$pgsql_conn = pg_connect(dbname=mark host=localhost);
-
-if ($pgsql_conn) {
-   print Successfully connected to:  . pg_host($pgsql_conn) . br/\n;
-} else {
-   print pg_last_error($pgsql_conn);
-   exit;
-}
+?php
+$pgsql_conn = pg_connect(dbname=mark host=localhost);
+
+if ($pgsql_conn) {
+   print Successfully connected to:  . pg_host($pgsql_conn) . br/\n;
+} else {
+   print pg_last_error($pgsql_conn);
+   exit;
+}
 ?
 ]]
 /programlisting
http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-options.xml?r1=1.5r2=1.6ty=u
Index: phpdoc/en/reference/pgsql/functions/pg-options.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-options.xml:1.5 
phpdoc/en/reference/pgsql/functions/pg-options.xml:1.6
--- phpdoc/en/reference/pgsql/functions/pg-options.xml:1.5  Fri Apr 15 
04:40:12 2005
+++ phpdoc/en/reference/pgsql/functions/pg-options.xml  Mon Apr 25 05:00:51 2005
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.5 $ --
+!-- $Revision: 1.6 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --
 refentry id=function.pg-options
  refnamediv
@@ -54,9 +54,9 @@
 titlefunctionpg_options/function example/title
 programlisting role=php
 ![CDATA[
-?php
+?php
$pgsql_conn = pg_connect(dbname=mark host=localhost);
-   echo pg_options($pgsql_conn);
+   echo pg_options($pgsql_conn);
 ?
 ]]
 /programlisting

[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-copy-from.xml pg-copy-to.xml

2002-09-29 Thread Yasuo Ohgaki

yohgaki Mon Sep 30 00:24:16 2002 EDT

  Modified files:  
/phpdoc/en/reference/pgsql/functionspg-copy-from.xml 
pg-copy-to.xml 
  Log:
  Fixed proto. Add more description.
  
  
Index: phpdoc/en/reference/pgsql/functions/pg-copy-from.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-copy-from.xml:1.3 
phpdoc/en/reference/pgsql/functions/pg-copy-from.xml:1.4
--- phpdoc/en/reference/pgsql/functions/pg-copy-from.xml:1.3Wed Apr 24 20:50:04 
2002
+++ phpdoc/en/reference/pgsql/functions/pg-copy-from.xmlMon Sep 30 00:24:16 
+2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.3 $ --
+!-- $Revision: 1.4 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --
   refentry id='function.pg-copy-from'
refnamediv
 -11,8 +11,8 
refsect1
 titleDescription/title
  methodsynopsis
-  typeint/typemethodnamepg_copy_from/methodname
-  methodparamtypeint/typeparameterconnection/parameter/methodparam
+  typebool/typemethodnamepg_copy_from/methodname
+  
+methodparamtyperesource/typeparameterconnection/parameter/methodparam
   methodparamtypestring/typeparametertable_name/parameter/methodparam
   methodparamtypearray/typeparameterrows/parameter/methodparam
   methodparam 
choice=opttypestring/typeparameterdelimiter/parameter/methodparam
 -20,7 +20,7 
  /methodsynopsis
 para
  functionpg_copy_from/function insert records into a table from 
- parameterrows/parameter. It issues literalCOPY/literal command 
+ parameterrows/parameter. It issues literalCOPY FROM/literal SQL command 
  internally to insert records.
  return.success;
 /para
Index: phpdoc/en/reference/pgsql/functions/pg-copy-to.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-copy-to.xml:1.2 
phpdoc/en/reference/pgsql/functions/pg-copy-to.xml:1.3
--- phpdoc/en/reference/pgsql/functions/pg-copy-to.xml:1.2  Wed Apr 17 02:43:18 
2002
+++ phpdoc/en/reference/pgsql/functions/pg-copy-to.xml  Mon Sep 30 00:24:16 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --
   refentry id='function.pg-copy-to'
refnamediv
 -11,15 +11,17 
refsect1
 titleDescription/title
  methodsynopsis
-  typeint/typemethodnamepg_copy_to/methodname
-  methodparamtypeint/typeparameterconnection/parameter/methodparam
+  typearray/typemethodnamepg_copy_to/methodname
+  
+methodparamtyperesource/typeparameterconnection/parameter/methodparam
   methodparamtypestring/typeparametertable_name/parameter/methodparam
   methodparam 
choice=opttypestring/typeparameterdelimiter/parameter/methodparam
   methodparam 
choice=opttypestring/typeparameternull_as/parameter/methodparam
  /methodsynopsis
 para
- functionpg_copy_to/function copies a table to an array. The
- resulting array is returned. It returns false; on failure.
+ functionpg_copy_to/function copies a table to an array. It
+ issues literalCOPY TO/literal SQL command internally to
+ insert records. The resulting array is returned. It returns
+ false; on failure.
 /para
 para
  See also functionpg_copy_from/function



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-copy-from.xml

2002-04-24 Thread Yasuo Ohgaki

yohgaki Wed Apr 24 20:50:05 2002 EDT

  Modified files:  
/phpdoc/en/reference/pgsql/functionspg-copy-from.xml 
  Log:
  Improve description a bit. (Need more work)
  
  
Index: phpdoc/en/reference/pgsql/functions/pg-copy-from.xml
diff -u phpdoc/en/reference/pgsql/functions/pg-copy-from.xml:1.2 
phpdoc/en/reference/pgsql/functions/pg-copy-from.xml:1.3
--- phpdoc/en/reference/pgsql/functions/pg-copy-from.xml:1.2Wed Apr 17 02:43:17 
2002
+++ phpdoc/en/reference/pgsql/functions/pg-copy-from.xmlWed Apr 24 20:50:04 
+2002
 -1,11 +1,11 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 --
   refentry id='function.pg-copy-from'
refnamediv
 refnamepg_copy_from/refname
 refpurpose
- Copy a table from an array
+ Insert records into a table from an array
 /refpurpose
/refnamediv
refsect1
 -19,7 +19,9 
   methodparam 
choice=opttypestring/typeparameternull_as/parameter/methodparam
  /methodsynopsis
 para
- functionpg_copy_from/function copies a table from an array.
+ functionpg_copy_from/function insert records into a table from 
+ parameterrows/parameter. It issues literalCOPY/literal command 
+ internally to insert records.
  return.success;
 /para
 para