reference/pgsql/functions/pg-copy-from.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -1,7 +1,7 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.82 -->
4
-
<refentry xml:id='function.pg-copy-from' xmlns="http://docbook.org/ns/docbook">
4
+
<refentry xml:id="function.pg-copy-from" xmlns="http://docbook.org/ns/docbook">
5
5
<refnamediv>
6
6
<refname>pg_copy_from</refname>
7
7
<refpurpose>
...
...
@@ -13,11 +13,11 @@
13
13
&reftitle.description;
14
14
<methodsynopsis>
15
15
<type>bool</type><methodname>pg_copy_from</methodname>
16
-
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
16
+
<methodparam><type>PgSql\Connection</type><parameter>connection</parameter></methodparam>
17
17
<methodparam><type>string</type><parameter>table_name</parameter></methodparam>
18
18
<methodparam><type>array</type><parameter>rows</parameter></methodparam>
19
-
<methodparam choice="opt"><type>string</type><parameter>delimiter</parameter></methodparam>
20
-
<methodparam choice="opt"><type>string</type><parameter>null_as</parameter></methodparam>
19
+
<methodparam choice="opt"><type>string</type><parameter>separator</parameter><initializer>"\t"</initializer></methodparam>
20
+
<methodparam choice="opt"><type>string</type><parameter>null_as</parameter><initializer>"\\\\N"</initializer></methodparam>
21
21
</methodsynopsis>
22
22
<para>
23
23
<function>pg_copy_from</function> inserts records into a table from
...
...
@@ -33,9 +33,7 @@
33
33
<varlistentry>
34
34
<term><parameter>connection</parameter></term>
35
35
<listitem>
36
-
<para>
37
-
PostgreSQL database connection resource.
38
-
</para>
36
+
&pgsql.parameter.connection;
39
37
</listitem>
40
38
</varlistentry>
41
39
<varlistentry>
...
...
@@ -58,11 +56,11 @@
58
56
</listitem>
59
57
</varlistentry>
60
58
<varlistentry>
61
-
<term><parameter>delimiter</parameter></term>
59
+
<term><parameter>separator</parameter></term>
62
60
<listitem>
63
61
<para>
64
62
The token that separates values for each field in each element of
65
-
<parameter>rows</parameter>. Default is <literal>TAB</literal>.
63
+
<parameter>rows</parameter>. Default is <literal>\t</literal>.
66
64
</para>
67
65
</listitem>
68
66
</varlistentry>
...
...
@@ -71,7 +69,7 @@
71
69
<listitem>
72
70
<para>
73
71
How SQL <literal>NULL</literal> values are represented in the
74
-
<parameter>rows</parameter>. Default is \N ("\\N").
72
+
<parameter>rows</parameter>. Default is <literal>\\N</literal> (<literal>"\\\\N"</literal>).
75
73
</para>
76
74
</listitem>
77
75
</varlistentry>
...
...
@@ -86,6 +84,23 @@
86
84
</para>
87
85
</refsect1>
88
86

87
+
<refsect1 role="changelog">
88
+
&reftitle.changelog;
89
+
<informaltable>
90
+
<tgroup cols="2">
91
+
<thead>
92
+
<row>
93
+
<entry>&Version;</entry>
94
+
<entry>&Description;</entry>
95
+
</row>
96
+
</thead>
97
+
<tbody>
98
+
&pgsql.changelog.connection-object;
99
+
</tbody>
100
+
</tgroup>
101
+
</informaltable>
102
+
</refsect1>
103
+

89
104
<refsect1 role="examples">
90
105
&reftitle.examples;
91
106
<para>
...
...
@@ -117,7 +132,6 @@
117
132
</para>
118
133
</refsect1>
119
134
</refentry>
120
-

121
135
<!-- Keep this comment at the end of the file
122
136
Local variables:
123
137
mode: sgml
124
138