cvs: phpdoc-fr /reference/sqlite constants.xml ini.xml reference.xml /reference/sqlite/functions sqlite-array-query.xml sqlite-busy-timeout.xml
sqlite-changes.xml sqlite-close.xml sqlite-column.xml sqlite-create-aggregate.xml sqlite-create-function.xml sqlite-current.xml
sqlite-error-string.xml sqlite-escape-string.xml sqlite-fetch-array.xml sqlite-fetch-single.xml sqlite-fetch-string.xml sqlite-field-name.xml
sqlite-has-more.xml sqlite-last-error.xml sqlite-last-insert-rowid.xml sqlite-libencoding.xml sqlite-libversion.xml sqlite-next.xml
sqlite-num-fields.xml sqlite-num-rows.xml sqlite-open.xml sqlite-popen.xml sqlite-query.xml sqlite-rewind.xml sqlite-seek.xml
sqlite-udf-decode-binary.xml sqlite-udf-encode-binary.xml sqlite-unbuffered-query.xml
| From: | Yannick TORRES | Date: | Sat, 01 May 2004 21:36:27 +0000 |
| Subject: | cvs: phpdoc-fr /reference/sqlite constants.xml ini.xml reference.xml /reference/sqlite/functions sqlite-array-query.xml sqlite-busy-timeout.xml sqlite-changes.xml sqlite-close.xml sqlite-column.xml sqlite-create-aggregate.xml sqlite-create-function.xml sqlite-current.xml sqlite-error-string.xml sqlite-escape-string.xml sqlite-fetch-array.xml sqlite-fetch-single.xml sqlite-fetch-string.xml sqlite-field-name.xml sqlite-has-more.xml sqlite-last-error.xml sqlite-last-insert-rowid.xml sqlite-libencoding.xml sqlite-libversion.xml sqlite-next.xml sqlite-num-fields.xml sqlite-num-rows.xml sqlite-open.xml sqlite-popen.xml sqlite-query.xml sqlite-rewind.xml sqlite-seek.xml sqlite-udf-decode-binary.xml sqlite-udf-encode-binary.xml sqlite-unbuffered-query.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-2380@lists.php.net to get a copy of this message | ||
yannick Sat May 1 17:36:27 2004 EDT
Modified files:
/phpdoc-fr/reference/sqlite/functions sqlite-array-query.xml
sqlite-busy-timeout.xml
sqlite-changes.xml
sqlite-close.xml
sqlite-column.xml
sqlite-create-aggregate.xml
sqlite-create-function.xml
sqlite-current.xml
sqlite-error-string.xml
sqlite-escape-string.xml
sqlite-fetch-array.xml
sqlite-fetch-single.xml
sqlite-fetch-string.xml
sqlite-field-name.xml
sqlite-has-more.xml
sqlite-last-error.xml
sqlite-last-insert-rowid.xml
sqlite-libencoding.xml
sqlite-libversion.xml
sqlite-next.xml
sqlite-num-fields.xml
sqlite-num-rows.xml
sqlite-open.xml
sqlite-popen.xml
sqlite-query.xml
sqlite-rewind.xml
sqlite-seek.xml
sqlite-udf-decode-binary.xml
sqlite-udf-encode-binary.xml
sqlite-unbuffered-query.xml
/phpdoc-fr/reference/sqlite constants.xml ini.xml reference.xml
Log:
synch with EN Revision
http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml:1.6 phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml:1.7 --- phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml:1.6 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-array-query"> <refnamediv> <refname>sqlite_array_query</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-busy-timeout"> <refnamediv><refname>sqlite_busy_timeout</refname> <refpurpose>Configure le délai d'attente d'une base SQLite occupée</refpurpose> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml:1.6 phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml:1.7 --- phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml:1.6 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-changes"> <refnamediv> <refname>sqlite_changes</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-close.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-close.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-close.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-close.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-close.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-close.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-close"> <refnamediv> <refname>sqlite_close</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-column.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-column.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-column.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-column.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-column.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-column.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-column"> <refnamediv> <refname>sqlite_column</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml:1.6 phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml:1.7 --- phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml:1.6 Tue Mar 2 11:30:49 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-create-aggregate"> <refnamediv> <refname>sqlite_create_aggregate</refname> @@ -53,17 +53,19 @@ $db = sqlite_open(':memory:'); sqlite_query($db, "CREATE TABLE strings(a)"); foreach ($data as $str) { - sqlite_query($db, "INSERT INTO strings VALUES('" . - sqlite_escape_string($str) . "')"); + $str = sqlite_escape_string($str); + sqlite_query($db, "INSERT INTO strings VALUES('$str')"); } -function max_len_step(&$context, $string) { +function max_len_step(&$context, $string) +{ if (strlen($string) > $context) { $context = strlen($string); } } -function max_len_finalize(&$context) { +function max_len_finalize(&$context) +{ return $context; } http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-create-function"> <refnamediv> <refname>sqlite_create_function</refname> @@ -40,13 +40,21 @@ <programlisting role="php"> <![CDATA[ <?php -function md5_and_reverse($string) { +function md5_and_reverse($string) +{ return strrev(md5($string)); } -sqlite_create_function($db, 'md5rev', 'md5_and_reverse', 1); - -$rows = sqlite_array_query($db, 'SELECT md5rev(filename) from files'); +if ($dbhandle = sqlite_open('mysqlitedb', 0666, $sqliteerror)) { + + sqlite_create_function($dbhandle, 'md5rev', 'md5_and_reverse', 1); + + $sql = 'SELECT md5rev(filename) FROM files'; + $rows = sqlite_array_query($dbhandle, $sql); +} else { + echo 'Erreur pendant l\'ouverture de la base db : ' . $sqliteerror; + exit; +} ?> ]]> </programlisting> @@ -56,14 +64,13 @@ Dans cet exemple, nous avons une fonction qui calcule la somme de contrôle MD5 d'une chaîne, et l'inverse. Lorsque la requête SQL s'exécute, elle retourne le nom du fichier, transformé par cette opération. - Les données retournées dans <parameter>$rows</parameter> contient le + Les données retournées dans <parameter>$rows</parameter> contiennent le résultat. </para> <para> La beauté de cette technique est que vous n'avez pas à traiter vous même les données avec une boucle, une fois que vous avez lu les données. </para> - <para> &php; enregistre une fonction spéciale appelée <literal>php</literal> lorsque la base est ouverte. Cette fonction est utilisée pour appeler toute fonction @@ -75,8 +82,9 @@ <programlisting role="php"> <![CDATA[ <?php - $rows = sqlite_array_query($db, "SELECT php('md5', filename) from files"); -?>]]> +$rows = sqlite_array_query($db, "SELECT php('md5', filename) from files"); +?> +]]> </programlisting> <para> Cet exemple va appeler la fonction <function>md5</function> sur chaque http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-current.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-current.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-current.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-current.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-current.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-current.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-current"> <refnamediv> <refname>sqlite_current</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-error-string"> <refnamediv> <refname>sqlite_error_string</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-escape-string"> <refnamediv> <refname>sqlite_escape_string</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml:1.5 Tue Feb 24 13:13:54 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml Sat May 1 17:36:26 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-fetch-array"> <refnamediv> <refname>sqlite_fetch_array</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-fetch-single"> <refnamediv> <refname>sqlite_fetch_single</refname> @@ -31,7 +31,8 @@ <?php if ($db = sqlite_open('mysqlitedb', 0666, $sqliteerror)) { - $res = sqlite_query($db, "SELECT id FROM sometable WHERE id = 42"); + $sql = 'SELECT id FROM sometable WHERE id = 42'; + $res = sqlite_query($db, $sql); if (sqlite_num_rows($res) > 0) { echo sqlite_fetch_single($res); // 42 http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-fetch-string"> <refnamediv> <refname>sqlite_fetch_string</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-field-name"> <refnamediv> <refname>sqlite_field_name</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-has-more"> <refnamediv> <refname>sqlite_has_more</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-last-error"> <refnamediv> <refname>sqlite_last_error</refname> @@ -15,6 +15,8 @@ <para> <function>sqlite_last_error</function> retourne le code d'erreur de la dernière opération SQL effectuée sur la base <parameter>dbhandle</parameter>. + Une description lisible de cette erreur peut être obtenue avec la fonction + <function>sqlite_error_string</function>. </para> <para> Voir aussi http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-last-insert-rowid"> <refnamediv> <refname>sqlite_last_insert_rowid</refname> @@ -15,8 +15,7 @@ <para> <function>sqlite_last_insert_rowid</function> retourne le numéro de ligne inséré dans la base <parameter>dbhandle</parameter>, - si elle a été créée avec un champ - auto-incrémenté. + si elle a été créée avec un champ auto-incrémenté. </para> <tip> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-libencoding"> <refnamediv> <refname>sqlite_libencoding</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml:1.3 phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml:1.4 --- phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml:1.3 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-libversion"> <refnamediv> <refname>sqlite_libversion</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-next.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-next.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-next.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-next.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-next.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-next.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-next"> <refnamediv> <refname>sqlite_next</refname> @@ -20,7 +20,7 @@ </para> <note> <para> - Cette fonction ne peut utiliser de résultats non bufferisés. + Cette fonction ne peut pas être utilisée avec des résultats non bufferisés. </para> </note> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-num-fields"> <refnamediv> <refname>sqlite_num_fields</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-num-rows"> <refnamediv> <refname>sqlite_num_rows</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-open.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-open.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-open.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-open.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-open.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-open.xml Sat May 1 17:36:26 2004 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-open"> <refnamediv> <refname>sqlite_open</refname> - <refpurpose>Ouvre une base SQLite</refpurpose> + <refpurpose>Ouvre une base SQLite. La base sera créée si elle n'existe pas.</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -22,7 +22,7 @@ Le paramètre <parameter>filename</parameter> est le nom de la base. Cela peut être un nom relatif ou absolu, que SQLite va utiliser pour stocker vos données. Si le fichier n'existe pas, SQLite va tenter de le créer. Vous - <emphasis>DEVEZ</emphasis> avoir les droits d'ecriture si vous voulez + <emphasis>DEVEZ</emphasis> avoir les droits d'écriture si vous voulez faire des insertions de données, ou modifier votre schéma de base. </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml Sat May 1 17:36:26 2004 @@ -1,10 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-popen"> <refnamediv> <refname>sqlite_popen</refname> - <refpurpose>Ouvre une connexion SQlite persistante</refpurpose> + <refpurpose> + Ouvre une connexion SQlite persistante. La base sera créée si elle n'existe pas.</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -22,7 +23,7 @@ </simpara> <para> <function>sqlite_popen</function> va d'abord vérifier qu'il reste une connexion - persistante, déjà ouverte pour le fichier <parameter>filename</parameter>. + persistante déjà ouverte pour le fichier <parameter>filename</parameter>. Si elle peut en trouver une, elle l'utilisera, et sinon, elle ouvrira une nouvelle connexion. </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-query.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-query.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-query.xml:1.6 phpdoc-fr/reference/sqlite/functions/sqlite-query.xml:1.7 --- phpdoc-fr/reference/sqlite/functions/sqlite-query.xml:1.6 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-query.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-query"> <refnamediv> <refname>sqlite_query</refname> @@ -38,7 +38,7 @@ requête échoue. </para> <para> - <function>sqlite_query</function> retourne une résultat bufferisé. + <function>sqlite_query</function> retourne un résultat bufferisé. C'est très pratique pour des résultats de petites tailles, où vous aurez besoin d'accéder aléatoirement aux lignes. Les résultats bufferisés allouent la mémoire nécessaire pour stocker tout le http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml:1.3 phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml:1.4 --- phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml:1.3 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-rewind"> <refnamediv> <refname>sqlite_rewind</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-seek"> <refnamediv> <refname>sqlite_seek</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml:1.4 Tue Mar 2 11:30:49 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-udf-decode-binary"> <refnamediv> <refname>sqlite_udf_decode_binary</refname> @@ -50,18 +50,20 @@ $db = sqlite_open(':memory:'); sqlite_query($db, "CREATE TABLE strings(a)"); foreach ($data as $str) { - sqlite_query($db, "INSERT INTO strings VALUES('" . - sqlite_escape_string($str) . "')"); + $str = sqlite_escape_string($str); + sqlite_query($db, "INSERT INTO strings VALUES ('$str')"); } -function max_len_step(&$context, $string) { +function max_len_step(&$context, $string) +{ $string = sqlite_udf_decode_binary($string); if (strlen($string) > $context) { $context = strlen($string); } } -function max_len_finalize(&$context) { +function max_len_finalize(&$context) +{ return $context; } @@ -69,7 +71,8 @@ var_dump(sqlite_array_query($db, 'SELECT max_len(a) from strings')); -?>]]> +?> +]]> </programlisting> </example> </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-udf-encode-binary"> <refnamediv> <refname>sqlite_udf_encode_binary</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-unbuffered-query"> <refnamediv> <refname>sqlite_unbuffered_query</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/constants.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/constants.xml diff -u phpdoc-fr/reference/sqlite/constants.xml:1.5 phpdoc-fr/reference/sqlite/constants.xml:1.6 --- phpdoc-fr/reference/sqlite/constants.xml:1.5 Fri Feb 27 09:31:00 2004 +++ phpdoc-fr/reference/sqlite/constants.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <section id="sqlite.constants"> <title>Constantes prédéfinies</title> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/ini.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/sqlite/ini.xml diff -u phpdoc-fr/reference/sqlite/ini.xml:1.3 phpdoc-fr/reference/sqlite/ini.xml:1.4 --- phpdoc-fr/reference/sqlite/ini.xml:1.3 Wed Feb 25 07:40:38 2004 +++ phpdoc-fr/reference/sqlite/ini.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <section id="sqlite.configuration"> &reftitle.runtime; &extension.runtime; @@ -43,13 +43,14 @@ la casse réelle de la colonne dans la base. </para> <para> - La librairie <productname>SQLite</productname> retourne le nom de la colonne sans y toucher + La librairie <productname>SQLite</productname> retourne le nom de la + colonne sans y toucher (c'est la casse qui sera utilisée dans votre base). Lorsque <parameter>sqlite.assoc_case</parameter> vaut <literal>0</literal> cette casse sera conservée. Lorsque cette option vaut <literal>1</literal> ou <literal>2</literal>, &php; va modifier la - casse des noms, et mettre le nom de la colonne en majuscules ou - minuscules, respectivement. + casse des noms, et mettre le nom de la colonne respectivement en majuscules ou + minuscules. </para> <para> Utiliser cette option implique une légère perte de performances, http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/sqlite/reference.xml diff -u phpdoc-fr/reference/sqlite/reference.xml:1.3 phpdoc-fr/reference/sqlite/reference.xml:1.4 --- phpdoc-fr/reference/sqlite/reference.xml:1.3 Wed Feb 25 07:40:38 2004 +++ phpdoc-fr/reference/sqlite/reference.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <reference id="ref.sqlite"> <title>SQLite</title> <titleabbrev>SQLite</titleabbrev> @@ -42,25 +42,19 @@ n'avez pas besoin de télécharger d'autres logiciels. </para> <para> - Les utilisateurs Windows peuvent télécharger la version DLL de l'extension + Les utilisateurs de Windows peuvent télécharger la version DLL de l'extension <productname>SQLite</productname> ici : <ulink url="&url.pecl.get.win;php_sqlite.dll">php_sqlite.dll</ulink>. </para> - </section> - - <section id="sqlite.contact"> - <title>Contacts</title> <para> - Toutes les questions concernant cette extension doivent être - envoyées aux <ulink url="&url.php.support;">listes de diffusion &php;</ulink>, - en anglais. + Dans la version 5 de &php;, l'extension SQLite ainsi que le moteur sont intégrés et + compilés par d"faut. </para> </section> - <section id="sqlite.requirements"> &reftitle.required; <para> - Afin de faire disposer de ces fonctions, vous devez compiler &php; + Afin de disposer de ces fonctions, vous devez compiler &php; avec le support <productname>SQLite</productname>, ou charger dynamiquement l'extension <productname>SQLite</productname> depuis votre fichier &php.ini;.
http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml:1.6 phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml:1.7 --- phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml:1.6 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-array-query.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-array-query"> <refnamediv> <refname>sqlite_array_query</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-busy-timeout.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-busy-timeout"> <refnamediv><refname>sqlite_busy_timeout</refname> <refpurpose>Configure le délai d'attente d'une base SQLite occupée</refpurpose> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml:1.6 phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml:1.7 --- phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml:1.6 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-changes.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-changes"> <refnamediv> <refname>sqlite_changes</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-close.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-close.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-close.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-close.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-close.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-close.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-close"> <refnamediv> <refname>sqlite_close</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-column.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-column.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-column.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-column.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-column.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-column.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-column"> <refnamediv> <refname>sqlite_column</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml:1.6 phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml:1.7 --- phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml:1.6 Tue Mar 2 11:30:49 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-create-aggregate.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-create-aggregate"> <refnamediv> <refname>sqlite_create_aggregate</refname> @@ -53,17 +53,19 @@ $db = sqlite_open(':memory:'); sqlite_query($db, "CREATE TABLE strings(a)"); foreach ($data as $str) { - sqlite_query($db, "INSERT INTO strings VALUES('" . - sqlite_escape_string($str) . "')"); + $str = sqlite_escape_string($str); + sqlite_query($db, "INSERT INTO strings VALUES('$str')"); } -function max_len_step(&$context, $string) { +function max_len_step(&$context, $string) +{ if (strlen($string) > $context) { $context = strlen($string); } } -function max_len_finalize(&$context) { +function max_len_finalize(&$context) +{ return $context; } http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-create-function.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-create-function"> <refnamediv> <refname>sqlite_create_function</refname> @@ -40,13 +40,21 @@ <programlisting role="php"> <![CDATA[ <?php -function md5_and_reverse($string) { +function md5_and_reverse($string) +{ return strrev(md5($string)); } -sqlite_create_function($db, 'md5rev', 'md5_and_reverse', 1); - -$rows = sqlite_array_query($db, 'SELECT md5rev(filename) from files'); +if ($dbhandle = sqlite_open('mysqlitedb', 0666, $sqliteerror)) { + + sqlite_create_function($dbhandle, 'md5rev', 'md5_and_reverse', 1); + + $sql = 'SELECT md5rev(filename) FROM files'; + $rows = sqlite_array_query($dbhandle, $sql); +} else { + echo 'Erreur pendant l\'ouverture de la base db : ' . $sqliteerror; + exit; +} ?> ]]> </programlisting> @@ -56,14 +64,13 @@ Dans cet exemple, nous avons une fonction qui calcule la somme de contrôle MD5 d'une chaîne, et l'inverse. Lorsque la requête SQL s'exécute, elle retourne le nom du fichier, transformé par cette opération. - Les données retournées dans <parameter>$rows</parameter> contient le + Les données retournées dans <parameter>$rows</parameter> contiennent le résultat. </para> <para> La beauté de cette technique est que vous n'avez pas à traiter vous même les données avec une boucle, une fois que vous avez lu les données. </para> - <para> &php; enregistre une fonction spéciale appelée <literal>php</literal> lorsque la base est ouverte. Cette fonction est utilisée pour appeler toute fonction @@ -75,8 +82,9 @@ <programlisting role="php"> <![CDATA[ <?php - $rows = sqlite_array_query($db, "SELECT php('md5', filename) from files"); -?>]]> +$rows = sqlite_array_query($db, "SELECT php('md5', filename) from files"); +?> +]]> </programlisting> <para> Cet exemple va appeler la fonction <function>md5</function> sur chaque http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-current.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-current.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-current.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-current.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-current.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-current.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-current"> <refnamediv> <refname>sqlite_current</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-error-string.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-error-string"> <refnamediv> <refname>sqlite_error_string</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-escape-string.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-escape-string"> <refnamediv> <refname>sqlite_escape_string</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml:1.5 Tue Feb 24 13:13:54 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-fetch-array.xml Sat May 1 17:36:26 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-fetch-array"> <refnamediv> <refname>sqlite_fetch_array</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-fetch-single.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-fetch-single"> <refnamediv> <refname>sqlite_fetch_single</refname> @@ -31,7 +31,8 @@ <?php if ($db = sqlite_open('mysqlitedb', 0666, $sqliteerror)) { - $res = sqlite_query($db, "SELECT id FROM sometable WHERE id = 42"); + $sql = 'SELECT id FROM sometable WHERE id = 42'; + $res = sqlite_query($db, $sql); if (sqlite_num_rows($res) > 0) { echo sqlite_fetch_single($res); // 42 http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-fetch-string.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-fetch-string"> <refnamediv> <refname>sqlite_fetch_string</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-field-name.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-field-name"> <refnamediv> <refname>sqlite_field_name</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-has-more.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-has-more"> <refnamediv> <refname>sqlite_has_more</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-last-error.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-last-error"> <refnamediv> <refname>sqlite_last_error</refname> @@ -15,6 +15,8 @@ <para> <function>sqlite_last_error</function> retourne le code d'erreur de la dernière opération SQL effectuée sur la base <parameter>dbhandle</parameter>. + Une description lisible de cette erreur peut être obtenue avec la fonction + <function>sqlite_error_string</function>. </para> <para> Voir aussi http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-last-insert-rowid.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-last-insert-rowid"> <refnamediv> <refname>sqlite_last_insert_rowid</refname> @@ -15,8 +15,7 @@ <para> <function>sqlite_last_insert_rowid</function> retourne le numéro de ligne inséré dans la base <parameter>dbhandle</parameter>, - si elle a été créée avec un champ - auto-incrémenté. + si elle a été créée avec un champ auto-incrémenté. </para> <tip> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-libencoding.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-libencoding"> <refnamediv> <refname>sqlite_libencoding</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml:1.3 phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml:1.4 --- phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml:1.3 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-libversion.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-libversion"> <refnamediv> <refname>sqlite_libversion</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-next.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-next.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-next.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-next.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-next.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-next.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-next"> <refnamediv> <refname>sqlite_next</refname> @@ -20,7 +20,7 @@ </para> <note> <para> - Cette fonction ne peut utiliser de résultats non bufferisés. + Cette fonction ne peut pas être utilisée avec des résultats non bufferisés. </para> </note> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-num-fields.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-num-fields"> <refnamediv> <refname>sqlite_num_fields</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-num-rows.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-num-rows"> <refnamediv> <refname>sqlite_num_rows</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-open.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-open.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-open.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-open.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-open.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-open.xml Sat May 1 17:36:26 2004 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-open"> <refnamediv> <refname>sqlite_open</refname> - <refpurpose>Ouvre une base SQLite</refpurpose> + <refpurpose>Ouvre une base SQLite. La base sera créée si elle n'existe pas.</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -22,7 +22,7 @@ Le paramètre <parameter>filename</parameter> est le nom de la base. Cela peut être un nom relatif ou absolu, que SQLite va utiliser pour stocker vos données. Si le fichier n'existe pas, SQLite va tenter de le créer. Vous - <emphasis>DEVEZ</emphasis> avoir les droits d'ecriture si vous voulez + <emphasis>DEVEZ</emphasis> avoir les droits d'écriture si vous voulez faire des insertions de données, ou modifier votre schéma de base. </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-popen.xml Sat May 1 17:36:26 2004 @@ -1,10 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-popen"> <refnamediv> <refname>sqlite_popen</refname> - <refpurpose>Ouvre une connexion SQlite persistante</refpurpose> + <refpurpose> + Ouvre une connexion SQlite persistante. La base sera créée si elle n'existe pas.</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -22,7 +23,7 @@ </simpara> <para> <function>sqlite_popen</function> va d'abord vérifier qu'il reste une connexion - persistante, déjà ouverte pour le fichier <parameter>filename</parameter>. + persistante déjà ouverte pour le fichier <parameter>filename</parameter>. Si elle peut en trouver une, elle l'utilisera, et sinon, elle ouvrira une nouvelle connexion. </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-query.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-query.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-query.xml:1.6 phpdoc-fr/reference/sqlite/functions/sqlite-query.xml:1.7 --- phpdoc-fr/reference/sqlite/functions/sqlite-query.xml:1.6 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-query.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-query"> <refnamediv> <refname>sqlite_query</refname> @@ -38,7 +38,7 @@ requête échoue. </para> <para> - <function>sqlite_query</function> retourne une résultat bufferisé. + <function>sqlite_query</function> retourne un résultat bufferisé. C'est très pratique pour des résultats de petites tailles, où vous aurez besoin d'accéder aléatoirement aux lignes. Les résultats bufferisés allouent la mémoire nécessaire pour stocker tout le http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml:1.3 phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml:1.4 --- phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml:1.3 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-rewind.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-rewind"> <refnamediv> <refname>sqlite_rewind</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-seek.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-seek"> <refnamediv> <refname>sqlite_seek</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml:1.4 Tue Mar 2 11:30:49 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-udf-decode-binary.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-udf-decode-binary"> <refnamediv> <refname>sqlite_udf_decode_binary</refname> @@ -50,18 +50,20 @@ $db = sqlite_open(':memory:'); sqlite_query($db, "CREATE TABLE strings(a)"); foreach ($data as $str) { - sqlite_query($db, "INSERT INTO strings VALUES('" . - sqlite_escape_string($str) . "')"); + $str = sqlite_escape_string($str); + sqlite_query($db, "INSERT INTO strings VALUES ('$str')"); } -function max_len_step(&$context, $string) { +function max_len_step(&$context, $string) +{ $string = sqlite_udf_decode_binary($string); if (strlen($string) > $context) { $context = strlen($string); } } -function max_len_finalize(&$context) { +function max_len_finalize(&$context) +{ return $context; } @@ -69,7 +71,8 @@ var_dump(sqlite_array_query($db, 'SELECT max_len(a) from strings')); -?>]]> +?> +]]> </programlisting> </example> </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml:1.4 phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml:1.5 --- phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml:1.4 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-udf-encode-binary.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-udf-encode-binary"> <refnamediv> <refname>sqlite_udf_encode_binary</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml diff -u phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml:1.5 phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml:1.6 --- phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml:1.5 Wed Feb 25 07:40:39 2004 +++ phpdoc-fr/reference/sqlite/functions/sqlite-unbuffered-query.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.sqlite-unbuffered-query"> <refnamediv> <refname>sqlite_unbuffered_query</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/constants.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/sqlite/constants.xml diff -u phpdoc-fr/reference/sqlite/constants.xml:1.5 phpdoc-fr/reference/sqlite/constants.xml:1.6 --- phpdoc-fr/reference/sqlite/constants.xml:1.5 Fri Feb 27 09:31:00 2004 +++ phpdoc-fr/reference/sqlite/constants.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <section id="sqlite.constants"> <title>Constantes prédéfinies</title> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/ini.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/sqlite/ini.xml diff -u phpdoc-fr/reference/sqlite/ini.xml:1.3 phpdoc-fr/reference/sqlite/ini.xml:1.4 --- phpdoc-fr/reference/sqlite/ini.xml:1.3 Wed Feb 25 07:40:38 2004 +++ phpdoc-fr/reference/sqlite/ini.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <section id="sqlite.configuration"> &reftitle.runtime; &extension.runtime; @@ -43,13 +43,14 @@ la casse réelle de la colonne dans la base. </para> <para> - La librairie <productname>SQLite</productname> retourne le nom de la colonne sans y toucher + La librairie <productname>SQLite</productname> retourne le nom de la + colonne sans y toucher (c'est la casse qui sera utilisée dans votre base). Lorsque <parameter>sqlite.assoc_case</parameter> vaut <literal>0</literal> cette casse sera conservée. Lorsque cette option vaut <literal>1</literal> ou <literal>2</literal>, &php; va modifier la - casse des noms, et mettre le nom de la colonne en majuscules ou - minuscules, respectivement. + casse des noms, et mettre le nom de la colonne respectivement en majuscules ou + minuscules. </para> <para> Utiliser cette option implique une légère perte de performances, http://cvs.php.net/diff.php/phpdoc-fr/reference/sqlite/reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/sqlite/reference.xml diff -u phpdoc-fr/reference/sqlite/reference.xml:1.3 phpdoc-fr/reference/sqlite/reference.xml:1.4 --- phpdoc-fr/reference/sqlite/reference.xml:1.3 Wed Feb 25 07:40:38 2004 +++ phpdoc-fr/reference/sqlite/reference.xml Sat May 1 17:36:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <reference id="ref.sqlite"> <title>SQLite</title> <titleabbrev>SQLite</titleabbrev> @@ -42,25 +42,19 @@ n'avez pas besoin de télécharger d'autres logiciels. </para> <para> - Les utilisateurs Windows peuvent télécharger la version DLL de l'extension + Les utilisateurs de Windows peuvent télécharger la version DLL de l'extension <productname>SQLite</productname> ici : <ulink url="&url.pecl.get.win;php_sqlite.dll">php_sqlite.dll</ulink>. </para> - </section> - - <section id="sqlite.contact"> - <title>Contacts</title> <para> - Toutes les questions concernant cette extension doivent être - envoyées aux <ulink url="&url.php.support;">listes de diffusion &php;</ulink>, - en anglais. + Dans la version 5 de &php;, l'extension SQLite ainsi que le moteur sont intégrés et + compilés par d"faut. </para> </section> - <section id="sqlite.requirements"> &reftitle.required; <para> - Afin de faire disposer de ces fonctions, vous devez compiler &php; + Afin de disposer de ces fonctions, vous devez compiler &php; avec le support <productname>SQLite</productname>, ou charger dynamiquement l'extension <productname>SQLite</productname> depuis votre fichier &php.ini;.