mirror of
https://github.com/php/doc-fr.git
synced 2026-03-23 22:52:18 +01:00
222 lines
7.5 KiB
XML
222 lines
7.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 3f82c54505bbf99a7dfdee2ae7f674b1e2719bd3 Maintainer: lacatoire Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<reference xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="class.pdo-pgsql" role="class">
|
|
<title>La classe Pdo\Pgsql</title>
|
|
<titleabbrev>Pdo\Pgsql</titleabbrev>
|
|
|
|
<partintro>
|
|
|
|
<!-- {{{ ClassName intro -->
|
|
<section xml:id="pdo-pgsql.intro">
|
|
&reftitle.intro;
|
|
<simpara>
|
|
Une sous-classe de <classname>PDO</classname> représentant une connexion
|
|
utilisant le pilote PostgreSQL PDO.
|
|
</simpara>
|
|
<para>
|
|
Ce pilote supporte un analyseur de requêtes SQL dédié pour le dialecte PostgreSQL.
|
|
Il peut gérer les éléments suivants :
|
|
<itemizedlist>
|
|
<listitem>
|
|
<simpara>
|
|
Les littéraux de chaînes simples et doubles, avec le doublement comme mécanisme d'échappement
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
Les littéraux de chaînes "échappées" de style C
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
Les littéraux de chaînes en dollars
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
Deux tirets et les commentaires de style C (non imbriqués)
|
|
</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara>
|
|
Le support de <literal>??</literal> comme séquence d'échappement pour
|
|
l'opérateur <literal>?</literal>.
|
|
</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</para>
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
<section xml:id="pdo-pgsql.synopsis">
|
|
&reftitle.classsynopsis;
|
|
|
|
<!-- {{{ Synopsis -->
|
|
<packagesynopsis>
|
|
<package>Pdo</package>
|
|
|
|
<classsynopsis class="class">
|
|
<ooclass>
|
|
<classname>Pgsql</classname>
|
|
</ooclass>
|
|
|
|
<ooclass>
|
|
<modifier>extends</modifier>
|
|
<classname>PDO</classname>
|
|
</ooclass>
|
|
|
|
<classsynopsisinfo role="comment">&InheritedConstants;</classsynopsisinfo>
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.pdo')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Constants;']]))">
|
|
<xi:fallback/>
|
|
</xi:include>
|
|
|
|
<classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="pdo-pgsql.constants.attr-disable-prepares">Pdo\Pgsql::ATTR_DISABLE_PREPARES</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="pdo-pgsql.constants.attr-result-memory-size">Pdo\Pgsql::ATTR_RESULT_MEMORY_SIZE</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="pdo-pgsql.constants.transaction-idle">Pdo\Pgsql::TRANSACTION_IDLE</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="pdo-pgsql.constants.transaction-active">Pdo\Pgsql::TRANSACTION_ACTIVE</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="pdo-pgsql.constants.transaction-intrans">Pdo\Pgsql::TRANSACTION_INTRANS</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="pdo-pgsql.constants.transaction-inerror">Pdo\Pgsql::TRANSACTION_INERROR</varname>
|
|
</fieldsynopsis>
|
|
<fieldsynopsis>
|
|
<modifier>public</modifier>
|
|
<modifier>const</modifier>
|
|
<type>int</type>
|
|
<varname linkend="pdo-pgsql.constants.transaction-unknown">Pdo\Pgsql::TRANSACTION_UNKNOWN</varname>
|
|
</fieldsynopsis>
|
|
|
|
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.pdo-pgsql')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Pdo\\Pgsql'])">
|
|
<xi:fallback/>
|
|
</xi:include>
|
|
|
|
<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.pdo')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='PDO'])">
|
|
<xi:fallback/>
|
|
</xi:include>
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.pdo')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='PDO'])">
|
|
<xi:fallback/>
|
|
</xi:include>
|
|
</classsynopsis>
|
|
</packagesynopsis>
|
|
<!-- }}} -->
|
|
|
|
</section>
|
|
|
|
<section xml:id="pdo-pgsql.constants">
|
|
&reftitle.constants;
|
|
<variablelist>
|
|
<varlistentry xml:id="pdo-pgsql.constants.attr-disable-prepares">
|
|
<term><constant>Pdo\Pgsql::ATTR_DISABLE_PREPARES</constant></term>
|
|
<listitem>
|
|
<simpara>
|
|
Envoie la requête et les paramètres au serveur en une seule fois ,
|
|
évitant le besoin de créer une instruction préparée nommée séparément.
|
|
Si la requête va être exécutée une seule fois, cela peut réduire la latence
|
|
en évitant un aller-retour inutile au serveur.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="pdo-pgsql.constants.attr-result-memory-size">
|
|
<term><constant>Pdo\Pgsql::ATTR_RESULT_MEMORY_SIZE</constant></term>
|
|
<listitem>
|
|
<simpara>
|
|
Renvoie la quantité de mémoire, en octets, allouée à l'instance
|
|
de <classname>PDOStatement</classname> de résultat de requête spécifiée,
|
|
ou &null; si aucun résultat n'existe avant l'exécution de la requête.
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="pdo-pgsql.constants.transaction-idle">
|
|
<term><constant>Pdo\Pgsql::TRANSACTION_IDLE</constant></term>
|
|
<listitem>
|
|
<simpara>
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="pdo-pgsql.constants.transaction-active">
|
|
<term><constant>Pdo\Pgsql::TRANSACTION_ACTIVE</constant></term>
|
|
<listitem>
|
|
<simpara>
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="pdo-pgsql.constants.transaction-intrans">
|
|
<term><constant>Pdo\Pgsql::TRANSACTION_INTRANS</constant></term>
|
|
<listitem>
|
|
<simpara>
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="pdo-pgsql.constants.transaction-inerror">
|
|
<term><constant>Pdo\Pgsql::TRANSACTION_INERROR</constant></term>
|
|
<listitem>
|
|
<simpara>
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="pdo-pgsql.constants.transaction-unknown">
|
|
<term><constant>Pdo\Pgsql::TRANSACTION_UNKNOWN</constant></term>
|
|
<listitem>
|
|
<simpara>
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</section>
|
|
</partintro>
|
|
|
|
&reference.pdo-pgsql.pdo.entities.pgsql;
|
|
|
|
</reference>
|
|
<!-- 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
|
|
-->
|