mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-27 18:53:21 +02:00
152 lines
4.0 KiB
XML
152 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 648875cf73af01acdb6afaa5ca38b0bf6631bf42 Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
|
|
<refentry xml:id="function.cubrid-set-db-parameter" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>cubrid_set_db_parameter</refname>
|
|
<refpurpose>Définit les paramètres de base de données CUBRID</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>cubrid_set_db_parameter</methodname>
|
|
<methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>param_type</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>param_value</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
La fonction <function>cubrid_set_db_parameter</function> est utilisée
|
|
pour définir les paramètres de base de données CUBRID. Elle peut
|
|
définir les paramètres de base de données CUBRID suivants :
|
|
</para>
|
|
<para>
|
|
<simplelist>
|
|
<member><constant>PARAM_ISOLATION_LEVEL</constant></member>
|
|
<member><constant>PARAM_LOCK_TIMEOUT</constant></member>
|
|
</simplelist>
|
|
</para>
|
|
|
|
<note>
|
|
<para>
|
|
Le mode auto-commit peut être défini en utilisant la fonction
|
|
<function>cubrid_set_autocommit</function>.
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>conn_identifier</parameter></term>
|
|
<listitem><para>
|
|
La connexion CUBRID. Si l'identifiant de connexion n'est pas spécifié,
|
|
le dernier lien ouvert par la fonction
|
|
<function>cubrid_connect</function> sera utilisé.
|
|
</para></listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>param_type</parameter></term>
|
|
<listitem><para>Type de paramètre de la base de données.</para></listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>param_value</parameter></term>
|
|
<listitem><para>Niveau d'isolation (1-6) ou la valeur du délai d'expiration (en secondes).</para></listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<example>
|
|
<title>Exemple avec <function>cubrid_get_db_parameter</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$conn = cubrid_connect("localhost", 33000, "demodb", "dba");
|
|
|
|
$params = cubrid_get_db_parameter($conn);
|
|
var_dump($params);
|
|
|
|
cubrid_set_autocommit($conn, CUBRID_AUTOCOMMIT_TRUE);
|
|
cubrid_set_db_parameter($conn, CUBRID_PARAM_ISOLATION_LEVEL, 2);
|
|
|
|
$params_new = cubrid_get_db_parameter($conn);
|
|
var_dump($params_new);
|
|
|
|
cubrid_disconnect($conn);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
array(4) {
|
|
["PARAM_ISOLATION_LEVEL"]=>
|
|
int(3)
|
|
["PARAM_LOCK_TIMEOUT"]=>
|
|
int(-1)
|
|
["PARAM_MAX_STRING_LENGTH"]=>
|
|
int(1073741823)
|
|
["PARAM_AUTO_COMMIT"]=>
|
|
int(0)
|
|
}
|
|
array(4) {
|
|
["PARAM_ISOLATION_LEVEL"]=>
|
|
int(2)
|
|
["PARAM_LOCK_TIMEOUT"]=>
|
|
int(-1)
|
|
["PARAM_MAX_STRING_LENGTH"]=>
|
|
int(1073741823)
|
|
["PARAM_AUTO_COMMIT"]=>
|
|
int(1)
|
|
}
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>cubrid_get_db_parameter</function></member>
|
|
<member><function>cubrid_set_autocommit</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- 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
|
|
-->
|