<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/pdo.drivers.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'ref.pdo-cubrid.php',
    1 => 'Pilote PDO CUBRID',
    2 => 'Fonctions du pilote PDO CUBRID (PDO_CUBRID)',
  ),
  'up' => 
  array (
    0 => 'pdo.drivers.php',
    1 => 'Pilotes PDO',
  ),
  'prev' => 
  array (
    0 => 'pdo.drivers.php',
    1 => 'Pilotes PDO',
  ),
  'next' => 
  array (
    0 => 'ref.pdo-cubrid.connection.php',
    1 => 'DSN PDO_CUBRID',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/pdo_cubrid/reference.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/ref.pdo-cubrid.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ref.pdo-cubrid" class="reference">
 <h1 class="title">Fonctions du pilote PDO CUBRID (PDO_CUBRID)</h1>
 
 <div class="partintro">

  <div class="section" id="pdo-cubrid.intro"><h2 class="title">Introduction</h2>
  <p class="simpara">
   PDO_CUBRID est un pilote qui implémente l&#039;
   <a href="book.pdo.php#intro.pdo" class="link">interface PHP Data Objects (PDO)</a>
   pour permettre l&#039;accès à partir de PHP aux bases de données CUBRID.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">
    La version actuelle de PDO_CUBRID ne prend pas en charge la connexion persistante pour le moment.
  </span></p></blockquote>
 </div>

 
 



<div class="section" id="ref.pdo-cubrid.installation">
 <h2 class="title">Installation</h2>
 <p class="para">
  Pour construire l&#039;extension PDO_CUBRID, CUBRID DBMS doit être installé
  sur le même système que PHP.

  PDO_CUBRID est une extension <a href="https://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a>,
  aussi, il faut suivre les instructions de <a href="install.pecl.php" class="xref">Installation d'extensions PECL</a> pour
  installer l&#039;extension PDO_CUBRID. Lancez la commande <strong class="command">configure</strong>
  pour localiser le dossier de base de CUBRID comme ceci :
  <div class="example-contents screen">
<div class="cdata"><pre>
   $ ./configure --with-pdo-cubrid=/path/to/CUBRID[,shared]
</pre></div>
  </div>
  La commande <strong class="command">configure</strong> prendra par défaut la valeur de la
  variable d&#039;environnement <var class="envar">CUBRID</var>.
 </p>
 <p class="simpara">
  Aucune bibliothèque <abbr title="Dynamic Link Library">DLL</abbr> pour cette
        extension <abbr title="PHP Extension and Application Repository">PECL</abbr> n&#039;est actuellement disponible. Reportez-vous à la section
<a href="install.windows.building.php" class="link">Compilation sous Windows</a>.
  Des informations sur l&#039;installation manuelle sous Linux et Windows peuvent
  être trouvées dans le fichier build-guide.html du paquet CUBRID de PECL.
 </p>
</div>



 <div class="section" id="ref.pdo-cubrid.features">
  <h2 class="title">Fonctionnalités de PDO_CUBRID</h2>

  <div class="section">
   <h2 class="title">Curseurs défilables</h2>
   <p class="simpara">
    PDO_CUBRID prend en charge les curseurs défilables. Le type de curseur par défaut est
    forward only, et il est possible d&#039;utiliser le paramètre driver_options dans
    <span class="methodname"><a href="pdo.prepare.php" class="methodname">PDO::prepare()</a></span> pour changer le type de curseur.
   </p>
  </div>

  <div class="section">
   <h2 class="title">Délai d&#039;expiration</h2>
   <p class="simpara">
    PDO_CUBRID prend en charge le paramétrage du délai d&#039;exécution de l&#039;instruction SQL ;
    Il est possible d&#039;utiliser <span class="methodname"><a href="pdo.setattribute.php" class="methodname">PDO::setAttribute()</a></span> pour définir la valeur du délai d&#039;expiration.
   </p>
  </div>

  <div class="section">
   <h2 class="title">Mode autocommit et transaction</h2>

   <p class="simpara">
    PDO_CUBRID prend en charge à la fois le mode autocommit et la transaction, et
    le mode autocommit est activé par défaut. Il est possible d&#039;utiliser
    <span class="methodname"><a href="pdo.setattribute.php" class="methodname">PDO::setAttribute()</a></span> pour changer son état.
   </p>

   <p class="simpara">
    Lors de l&#039;utilisation de <span class="methodname"><a href="pdo.begintransaction.php" class="methodname">PDO::beginTransaction()</a></span> pour commencer une
    transaction, cela désactivera automatiquement le mode autocommit et
    le restaurera après <span class="methodname"><a href="pdo.commit.php" class="methodname">PDO::commit()</a></span> ou
    <span class="methodname"><a href="pdo.rollback.php" class="methodname">PDO::rollBack()</a></span>.
   </p>

   <blockquote class="note"><p><strong class="note">Note</strong>: 
    <span class="simpara">
     Avant de désactiver le mode autocommit,
     tout travail en attente est automatiquement validé.
    </span>
   </p></blockquote>
  </div>

  <div class="section">
   <h2 class="title">Instructions SQL multiples</h2>

   <p class="simpara">
    PDO_CUBRID prend en charge les instructions SQL multiples.
    Les instructions SQL multiples sont séparées par des points-virgules (<code class="literal">;</code>).
   </p>
  </div>

  <div class="section">
   <h2 class="title">Informations sur le schéma</h2>

   <p class="simpara">
    PDO_CUBRID implémente <span class="methodname"><a href="pdo.cubrid-schema.php" class="methodname">PDO::cubrid_schema()</a></span>
    pour obtenir des informations sur le schéma.
   </p>
  </div>

  <div class="section">
   <h2 class="title">LOBs</h2>

   <p class="simpara">
    PDO_CUBRID prend en charge les types de données BLOB/CLOB. Le LOB dans PDO est
    représenté comme un flux, il est possible de donc insérer des LOBs en liant un flux,
    et obtenir des LOBs en lisant un flux retourné par CUBRID PDO.
    Par exemple :
   </p>

   <div class="example" id="example-1">
    <p><strong>Exemple #1 Insérer des LOBs dans CUBRID PDO</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$fp </span><span style="color: #007700">= </span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #DD0000">'lob_test.png'</span><span style="color: #007700">, </span><span style="color: #DD0000">'rb'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$sql_stmt </span><span style="color: #007700">= </span><span style="color: #DD0000">"INSERT INTO lob_test(name, content) VALUES('lob_test.png', ?)"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #0000BB">$dbh</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql_stmt</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret </span><span style="color: #007700">= </span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">bindParam</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #0000BB">$fp</span><span style="color: #007700">, </span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">PARAM_LOB</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret </span><span style="color: #007700">= </span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>

   <div class="example" id="example-2">
    <p><strong>Exemple #2 Récupérer des LOBs dans CUBRID PDO</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$sql_stmt </span><span style="color: #007700">= </span><span style="color: #DD0000">"SELECT content FROM lob_test WHERE name='lob_test.png'"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #0000BB">$dbh</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql_stmt</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$result </span><span style="color: #007700">= </span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_NUM</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Content-Type: image/png"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fpassthru</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </div>

  <div class="section">
   <h2 class="title">Méta-colonne</h2>

   <p class="para">
    La méthode <span class="methodname"><a href="pdostatement.getcolumnmeta.php" class="methodname">PDOStatement::getColumnMeta()</a></span> dans CUBRID PDO
    renverra un tableau associatif contenant les valeurs suivantes :
    <ul class="simplelist">
     <li>type</li>
     <li>name</li>
     <li>table</li>
     <li>def</li>
     <li>precision</li>
     <li>scale</li>
     <li>not_null</li>
     <li>auto_increment</li>
     <li>unique_key</li>
     <li>multiple_key</li>
     <li>primary_key</li>
     <li>foreign_key</li>
     <li>reverse_index</li>
     <li>reverse_unique</li>
    </ul>
   </p>
  </div>
  <div class="section">
   <h2 class="title">Type de données Collection</h2>

   <p class="simpara">
    PDO_CUBRID prend en charge les types de données SET/MULTISET/SEQUENCE.
    Si on ne spécifie pas le type de données, le type de données par défaut est char.
    Par exemple :
   </p>

   <div class="example" id="example-3">
    <p><strong>Exemple #3 Insérer un ensemble dans CUBRID PDO avec le type de données par défaut.</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$conn_str </span><span style="color: #007700">=</span><span style="color: #DD0000">"cubrid:dbname=demodb;host=localhost;port=33000"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$cubrid_pdo </span><span style="color: #007700">= new </span><span style="color: #0000BB">PDO</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn_str</span><span style="color: #007700">, </span><span style="color: #DD0000">'dba'</span><span style="color: #007700">, </span><span style="color: #DD0000">''</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">exec</span><span style="color: #007700">(</span><span style="color: #DD0000">"DROP TABLE if exists test_tbl"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">exec</span><span style="color: #007700">(</span><span style="color: #DD0000">"CREATE TABLE test_tbl (col_1 SET(VARCHAR))"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$sql_stmt_insert </span><span style="color: #007700">= </span><span style="color: #DD0000">"INSERT INTO test_tbl VALUES (?);"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql_stmt_insert</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$data </span><span style="color: #007700">= array(</span><span style="color: #DD0000">"abc"</span><span style="color: #007700">,</span><span style="color: #DD0000">"def"</span><span style="color: #007700">,</span><span style="color: #DD0000">"ghi"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret </span><span style="color: #007700">= </span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">bindParam</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #0000BB">$data</span><span style="color: #007700">, </span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">PARAM_NULL</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret </span><span style="color: #007700">= </span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">var_Dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$ret</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    </div>

    <div class="example" id="example-4">
     <p><strong>Exemple #4 Spécifier le type de données lors de l&#039;insertion d&#039;un ensemble dans CUBRID PDO</strong></p>
     <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$conn_str </span><span style="color: #007700">=</span><span style="color: #DD0000">"cubrid:dbname=demodb;host=localhost;port=33000"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$cubrid_pdo </span><span style="color: #007700">= new </span><span style="color: #0000BB">PDO</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn_str</span><span style="color: #007700">, </span><span style="color: #DD0000">'dba'</span><span style="color: #007700">, </span><span style="color: #DD0000">''</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">exec</span><span style="color: #007700">(</span><span style="color: #DD0000">"DROP TABLE if exists test_tbl"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">exec</span><span style="color: #007700">(</span><span style="color: #DD0000">"CREATE TABLE test_tbl (col_1 SET(int))"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$sql_stmt_insert </span><span style="color: #007700">= </span><span style="color: #DD0000">"INSERT INTO test_tbl VALUES (?);"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #0000BB">$cubrid_pdo</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql_stmt_insert</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$data </span><span style="color: #007700">= array(</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">2</span><span style="color: #007700">,</span><span style="color: #0000BB">3</span><span style="color: #007700">,</span><span style="color: #0000BB">4</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret </span><span style="color: #007700">= </span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">bindParam</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #0000BB">$data</span><span style="color: #007700">, </span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #DD0000">"int"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ret </span><span style="color: #007700">= </span><span style="color: #0000BB">$stmt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">execute</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">var_Dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$ret</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
     </div>

    </div>

    <p class="para">
     Types de données CUBRID Bind pour le cinquième paramètre de
     <span class="methodname"><a href="pdostatement.bindparam.php" class="methodname">PDOStatement::bindParam()</a></span> :
     <ul class="simplelist">
      <li>CHAR</li>
      <li>STRING</li>
      <li>NCHAR</li>
      <li>VARNCHAR</li>
      <li>BIT</li>
      <li>VARBIT</li>
      <li>NUMERIC</li>
      <li>NUMBER</li>
      <li>INT</li>
      <li>SHORT</li>
      <li>BIGINT</li>
      <li>MONETARY</li>
      <li>FLOAT</li>
      <li>DOUBLE</li>
      <li>DATE</li>
      <li>TIME</li>
      <li>DATETIME</li>
      <li>TIMESTAMP</li>
     </ul>
    </p>
   </div>
  </div>

  
  




<div class="section" id="pdo-cubrid.constants">
 <h2 class="title">Constantes pré-définies</h2>
 <p class="simpara">Les constantes ci-dessous sont
définies par ce pilote et seront seulement disponibles lorsque l&#039;extension
aura été compilée dans PHP ou chargée dynamiquement du moteur d&#039;exécution.
De plus, ces constantes spécifiques au pilote devraient être utilisées seulement
si vous utilisez ce pilote. En utilisant les attributs spécifiques à un pilote
avec un autre pilote pourrait causer un comportement inattendu.
<span class="function"><a href="pdo.getattribute.php" class="function">PDO::getAttribute()</a></span> pourrait être utilisé pour obtenir
l&#039;attribut <strong><code><a href="pdo.constants.php#pdo.constants.attr-driver-name">PDO::ATTR_DRIVER_NAME</a></code></strong> pour vérifier le
pilote, si votre code peut fonctionner sur des pilotes multiples.</p>
  <p class="para">
   Les constantes suivantes peuvent être utilisées pour configurer les attributs
   de la base de données. Elles peuvent être passées à la méthode
   <span class="function"><a href="pdo.getattribute.php" class="function">PDO::getAttribute()</a></span> ou à la méthode
   <span class="function"><a href="pdo.setattribute.php" class="function">PDO::setAttribute()</a></span>.
  <table class="doctable table">
   <caption><strong>Drapeaux pour les attributs PDO::CUBRID</strong></caption>
    
     <thead>
      <tr>
       <th>Constante</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr id="pdo.constants.cubrid-attr-isolation-level">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-attr-isolation-level">PDO::CUBRID_ATTR_ISOLATION_LEVEL</a></code></strong></td>
       <td>Le niveau d&#039;isolation de la transaction pour la connexion à la base de données.</td>
      </tr>

      <tr id="pdo.constants.cubrid-attr-lock-timeout">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-attr-lock-timeout">PDO::CUBRID_ATTR_LOCK_TIMEOUT</a></code></strong></td>
       <td>Délai d&#039;expiration de la transaction en secondes.</td>
      </tr>

      <tr id="pdo.constants.cubrid-attr-max-string-length">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-attr-max-string-length">PDO::CUBRID_ATTR_MAX_STRING_LENGTH</a></code></strong></td>
       <td>Lecture seule. La longueur maximale de la chaîne pour les
        types de données bit, varbit, char, varchar, nchar, nchar
        lors de l&#039;utilisation de l&#039;API CUBRID PDO.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
   Les constantes suivantes peuvent être utilisées lors de la configuration
   du niveau d&#039;isolation de la transaction. Elles peuvent être passées à la
   méthode <span class="function"><a href="pdo.getattribute.php" class="function">PDO::getAttribute()</a></span> ou à la méthode
   <span class="function"><a href="pdo.setattribute.php" class="function">PDO::setAttribute()</a></span>.
  <table class="doctable table">
   <caption><strong>Drapeaux pour le niveau d&#039;isolation PDO::CUBRID</strong></caption>
    
     <thead>
      <tr>
       <th>Constante</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr id="pdo.constants.tran-commit-class-uncommit-instance">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.tran-commit-class-uncommit-instance">PDO::TRAN_COMMIT_CLASS_UNCOMMIT_INSTANCE</a></code></strong></td>
       <td>Le niveau d&#039;isolation le moins élevé (1). Une lecture
        sale, non reproductible ou fantôme peut survenir sur
        le tuple, mais aussi une lecture non reproductible peut
        survenir pour la table.</td>
      </tr>

      <tr id="pdo.constants.tran-commit-class-commit-instance">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.tran-commit-class-commit-instance">PDO::TRAN_COMMIT_CLASS_COMMIT_INSTANCE</a></code></strong></td>
       <td>Un niveau d&#039;isolation relativement bas (2). Une lecture
        sale ne peut pas survenir, par contre, une lecture
        non reproductible ou fantôme peut survenir.</td>
      </tr>

      <tr id="pdo.constants.tran-rep-class-uncommit-instance">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.tran-rep-class-uncommit-instance">PDO::TRAN_REP_CLASS_UNCOMMIT_INSTANCE</a></code></strong></td>
       <td>Le niveau d&#039;isolation par défaut pour CUBRID (3).
        Une lecture sale ou fantôme peut survenir sur le tuple,
        mais la reproductibilité de la lecture est assurée sur la table.</td>
      </tr>

      <tr id="pdo.constants.tran-rep-class-commit-instance">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.tran-rep-class-commit-instance">PDO::TRAN_REP_CLASS_COMMIT_INSTANCE</a></code></strong></td>
       <td>Un niveau d&#039;isolation relativement bas (4). Une lecture
        sale ne peut survenir, mais les lectures non reproductibles
        ou fantôme le peuvent.</td>
      </tr>

      <tr id="pdo.constants.tran-rep-class-rep-instance">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.tran-rep-class-rep-instance">PDO::TRAN_REP_CLASS_REP_INSTANCE</a></code></strong></td>
       <td>Un niveau d&#039;isolation relativement haut (5). Les
        lectures sales ou non reproductibles ne peuvent pas
        survenir, mais une lecture fantôme est possible.</td>
      </tr>

      <tr id="pdo.constants.tran-serializable">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.tran-serializable">PDO::TRAN_SERIALIZABLE</a></code></strong></td>
       <td>Le plus haut niveau d&#039;isolation (6). Les problèmes
        relatifs à la concurrence (c.-à-d. lecture sale, lecture
        non reproductible, lecture fantôme, etc.) ne peuvent survenir.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
   Les constantes suivantes peuvent être utilisées pour récupérer
   les informations sur le schéma. Elles peuvent être passées
   à la fonction <span class="function"><a href="pdo.cubrid-schema.php" class="function">PDO::cubrid_schema()</a></span>.
  <table class="doctable table">
   <caption><strong>Drapeaux pour le schéma CUBRID</strong></caption>
    
     <thead>
      <tr>
       <th>Constante</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr id="pdo.constants.cubrid-sch-table">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-table">PDO::CUBRID_SCH_TABLE</a></code></strong></td>
       <td>Récupère le nom et le type de table CUBRID.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-view">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-view">PDO::CUBRID_SCH_VIEW</a></code></strong></td>
       <td>Récupère le nom et le type de vue dans CUBRID.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-query-spec">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-query-spec">PDO::CUBRID_SCH_QUERY_SPEC</a></code></strong></td>
       <td>Récupère la définition de la requête de la vue.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-attribute">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-attribute">PDO::CUBRID_SCH_ATTRIBUTE</a></code></strong></td>
       <td>Récupère les attributs de la colonne de la table.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-table-attribute">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-table-attribute">PDO::CUBRID_SCH_TABLE_ATTRIBUTE</a></code></strong></td>
       <td>Récupère les attributs de la table.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-method">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-method">PDO::CUBRID_SCH_METHOD</a></code></strong></td>
       <td>Récupère la méthode de l&#039;instance. C&#039;est une méthode appelée
        par l&#039;instance de la classe. Elle est utilisée plus souvent que la
        méthode de la classe car la plupart des opérations sont exécutées
        dans l&#039;instance.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-table-method">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-table-method">PDO::CUBRID_SCH_TABLE_METHOD</a></code></strong></td>
       <td>Récupère la méthode de la classe. C&#039;est une méthode appelée
        par un objet de la classe. Elle est habituellement utilisée
        pour créer une nouvelle instance de la classe ou pour l&#039;initialiser.
        Elle est également utilisée pour accéder ou mettre à jour les attributs
        de la classe.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-method-file">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-method-file">PDO::CUBRID_SCH_METHOD_FILE</a></code></strong></td>
       <td>Récupère les informations sur le fichier où la méthode de la table
        est définie.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-super-table">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-super-table">PDO::CUBRID_SCH_SUPER_TABLE</a></code></strong></td>
       <td>Récupère le nom et le type de la table dont les attributs héritent.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-sub-table">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-sub-table">PDO::CUBRID_SCH_SUB_TABLE</a></code></strong></td>
       <td>Récupère le nom et le type de la table dont les attributs héritent.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-constraint">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-constraint">PDO::CUBRID_SCH_CONSTRAINT</a></code></strong></td>
       <td>Récupère les contraintes de la table.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-trigger">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-trigger">PDO::CUBRID_SCH_TRIGGER</a></code></strong></td>
       <td>Récupère les triggers de la table.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-table-privilege">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-table-privilege">PDO::CUBRID_SCH_TABLE_PRIVILEGE</a></code></strong></td>
       <td>Récupère les informations sur les privilèges de la table.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-col-privilege">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-col-privilege">PDO::CUBRID_SCH_COL_PRIVILEGE</a></code></strong></td>
       <td>Récupère les informations sur les privilèges d&#039;une colonne.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-direct-super-table">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-direct-super-table">PDO::CUBRID_SCH_DIRECT_SUPER_TABLE</a></code></strong></td>
       <td>Récupère la table directement supérieure à la table.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-primary-key">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-primary-key">PDO::CUBRID_SCH_PRIMARY_KEY</a></code></strong></td>
       <td>Récupère la clé primaire de la table.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-imported-keys">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-imported-keys">PDO::CUBRID_SCH_IMPORTED_KEYS</a></code></strong></td>
       <td>Récupère les clés importées d&#039;une table.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-exported-keys">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-exported-keys">PDO::CUBRID_SCH_EXPORTED_KEYS</a></code></strong></td>
       <td>Récupère les clés exportées d&#039;une table.</td>
      </tr>

      <tr id="pdo.constants.cubrid-sch-cross-reference">
       <td><strong><code><a href="ref.pdo-cubrid.php#pdo.constants.cubrid-sch-cross-reference">PDO::CUBRID_SCH_CROSS_REFERENCE</a></code></strong></td>
       <td>Récupère les relations de référence entre 2 tables.</td>
      </tr>

     </tbody>
    
   </table>

  </p>
</div>




 </div>

 

 







<h2>Sommaire</h2><ul class="chunklist chunklist_reference"><li><a href="ref.pdo-cubrid.connection.php">DSN PDO_CUBRID</a> — Connexion aux bases de donn&eacute;es CUBRID</li><li><a href="pdo.cubrid-schema.php">PDO::cubrid_schema</a> — R&eacute;cup&egrave;re le sch&eacute;ma d'informations demand&eacute;</li></ul>
</div>
<?php manual_footer($setup); ?>