1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision: 329486 $ -->
<section xml:id="pdo-mysql.constants" xmlns="http://docbook.org/ns/docbook">
&reftitle.constants;
&pdo.driver-constants;
<variablelist>
<varlistentry xml:id="pdo.constants.mysql-attr-use-buffered-query">
<term>
<constant>PDO::MYSQL_ATTR_USE_BUFFERED_QUERY</constant>
(<type>integer</type>)
</term>
<listitem>
<simpara>
If this attribute is set to &true; on a
<classname>PDOStatement</classname>, the MySQL driver will use the
buffered versions of the MySQL API. If you're writing portable code, you
should use <function>PDOStatement::fetchAll</function> instead.
</simpara>
<para>
<example><title>Forcing queries to be buffered in mysql</title>
<programlisting role="php">
<![CDATA[
<?php
if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
$stmt = $db->prepare('select * from foo',
array(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true));
} else {
die("my application only works with mysql; I should use \$stmt->fetchAll() instead");
}
?>
]]>
</programlisting>
</example>
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-local-infile">
<term>
<constant>PDO::MYSQL_ATTR_LOCAL_INFILE</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
Enable <literal>LOAD LOCAL INFILE</literal>.
</para>
<para>
Note, this constant can only be used in the <parameter>driver_options</parameter>
array when constructing a new database handle.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-init-command">
<term>
<constant>PDO::MYSQL_ATTR_INIT_COMMAND</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
Command to execute when connecting to the MySQL server. Will
automatically be re-executed when reconnecting.
</para>
<para>
Note, this constant can only be used in the <parameter>driver_options</parameter>
array when constructing a new database handle.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-read-default-file">
<term>
<constant>PDO::MYSQL_ATTR_READ_DEFAULT_FILE</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
Read options from the named option file instead of from
<filename>my.cnf</filename>. This option is not available if
mysqlnd is used, because mysqlnd does not read the mysql
configuration files.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-read-default-group">
<term>
<constant>PDO::MYSQL_ATTR_READ_DEFAULT_GROUP</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
Read options from the named group from <filename>my.cnf</filename> or the
file specified with <constant>MYSQL_READ_DEFAULT_FILE</constant>. This option
is not available if mysqlnd is used, because mysqlnd does not read the mysql
configuration files.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-max-buffer-size">
<term>
<constant>PDO::MYSQL_ATTR_MAX_BUFFER_SIZE</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
Maximum buffer size. Defaults to 1 MiB. This constant is not supported when
compiled against mysqlnd.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-direct-query">
<term>
<constant>PDO::MYSQL_ATTR_DIRECT_QUERY</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
Perform direct queries, don't use prepared statements.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-found-rows">
<term>
<constant>PDO::MYSQL_ATTR_FOUND_ROWS</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
Return the number of found (matched) rows, not the
number of changed rows.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-ignore-space">
<term>
<constant>PDO::MYSQL_ATTR_IGNORE_SPACE</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
Permit spaces after function names. Makes all functions
names reserved words.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-compress">
<term>
<constant>PDO::MYSQL_ATTR_COMPRESS</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
Enable network communication compression. This is not supported when
compiled against mysqlnd.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-ssl-ca">
<term>
<constant>PDO::MYSQL_ATTR_SSL_CA</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
The file path to the SSL certificate authority.
</para>
<para>
&version.exists.asof; 5.3.7.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-ssl-capath">
<term>
<constant>PDO::MYSQL_ATTR_SSL_CAPATH</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
The file path to the directory that contains the trusted SSL
CA certificates, which are stored in PEM format.
</para>
<para>
&version.exists.asof; 5.3.7.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-ssl-cert">
<term>
<constant>PDO::MYSQL_ATTR_SSL_CERT</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
The file path to the SSL certificate.
</para>
<para>
&version.exists.asof; 5.3.7.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-cipher">
<term>
<constant>PDO::MYSQL_ATTR_SSL_CIPHER</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
A list of one or more permissible ciphers to use for SSL encryption, in a format
understood by OpenSSL. For example: <literal>DHE-RSA-AES256-SHA:AES128-SHA</literal>
</para>
<para>
&version.exists.asof; 5.3.7.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="pdo.constants.mysql-attr-key">
<term>
<constant>PDO::MYSQL_ATTR_SSL_KEY</constant>
(<type>integer</type>)
</term>
<listitem>
<para>
The file path to the SSL key.
</para>
<para>
&version.exists.asof; 5.3.7.
</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
|