forked from AFPy/python-docs-fr
J'ai mis a jour la documentation SQLITE3
Co-Authored-By: Bruno LAURENT <brunolrt@gmail.com>
This commit is contained in:
parent 289b0b1b44
commit cfb63f0f70
1 changed files with 83 additions and 15 deletions
| | @ -6,21 +6,22 @@ msgstr "" | |||
"Project-Id-Version: Python 3.6\n" | ||||
"Report-Msgid-Bugs-To: \n" | ||||
"POT-Creation-Date: 2018-11-29 16:06+0100\n" | ||||
"PO-Revision-Date: 2018-07-03 11:13+0200\n" | ||||
"PO-Revision-Date: 2019-01-11 23:12+0100\n" | ||||
"Last-Translator: Julien Palard <julien@palard.fr>\n" | ||||
"Language-Team: FRENCH <traductions@lists.afpy.org>\n" | ||||
"Language: fr\n" | ||||
"MIME-Version: 1.0\n" | ||||
"Content-Type: text/plain; charset=UTF-8\n" | ||||
"Content-Transfer-Encoding: 8bit\n" | ||||
"X-Generator: Poedit 2.0.6\n" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:2 | ||||
msgid ":mod:`sqlite3` --- DB-API 2.0 interface for SQLite databases" | ||||
msgstr "" | ||||
msgstr ":mod:`sqlite3` --- Interface DB-API 2.0 pour SQLite databases" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:9 | ||||
msgid "**Source code:** :source:`Lib/sqlite3/`" | ||||
msgstr "" | ||||
msgstr "**Source code:** :source:`Lib/sqlite3/`" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:13 | ||||
msgid "" | ||||
| | @ -31,6 +32,13 @@ msgid "" | |||
"application using SQLite and then port the code to a larger database such as " | ||||
"PostgreSQL or Oracle." | ||||
msgstr "" | ||||
"SQLite est une bibliothèque C qui fournit une base de données légère sur " | ||||
"disque ne nécessitant pas de processus serveur distinct et permet d'accéder " | ||||
"à la base de données à l'aide d'une variante non standard du langage de " | ||||
"requête SQL. Certaines applications peuvent utiliser SQLite pour le stockage " | ||||
"de données interne. Il est également possible de créer un une application " | ||||
"prototype à l'aide de SQLite, puis de transférer le code dans une base de " | ||||
"données plus grande telle que PostgreSQL ou Oracle." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:20 | ||||
msgid "" | ||||
| | @ -38,6 +46,8 @@ msgid "" | |||
"interface compliant with the DB-API 2.0 specification described by :pep:" | ||||
"`249`." | ||||
msgstr "" | ||||
"Le sqlite3 module a été écrit par Gerhard Häring. Il fournit une interface " | ||||
"SQL conforme à la spécification DB-API 2.0 décrite par: pep: `249`." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:23 | ||||
msgid "" | ||||
| | @ -45,23 +55,33 @@ msgid "" | |||
"represents the database. Here the data will be stored in the :file:`example." | ||||
"db` file::" | ||||
msgstr "" | ||||
"Pour utiliser le module, vous devez d’abord créer une class: `Connection` " | ||||
"qui représente la base de données. Ici les données seront stockées dans: " | ||||
"file: `example.db` file ::" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:30 | ||||
msgid "" | ||||
"You can also supply the special name ``:memory:`` to create a database in " | ||||
"RAM." | ||||
msgstr "" | ||||
"Vous pouvez également fournir le nom spécial ``: memory: `` pour créer une " | ||||
"base de données dans la RAM." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:32 | ||||
msgid "" | ||||
"Once you have a :class:`Connection`, you can create a :class:`Cursor` " | ||||
"object and call its :meth:`~Cursor.execute` method to perform SQL commands::" | ||||
msgstr "" | ||||
"Une fois que vous avez une classe: `Connection`, vous pouvez créer un objet: " | ||||
"classe:` Cursor` et appeler sa méthode: meth: `~ Cursor.execute` pour " | ||||
"exécuter les commandes SQL ::" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:51 | ||||
msgid "" | ||||
"The data you've saved is persistent and is available in subsequent sessions::" | ||||
msgstr "" | ||||
"Les données que vous avez sauvegardées sont persistantes et disponibles dans " | ||||
"les sessions suivantes:" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:57 | ||||
msgid "" | ||||
| | @ -70,6 +90,12 @@ msgid "" | |||
"doing so is insecure; it makes your program vulnerable to an SQL injection " | ||||
"attack (see https://xkcd.com/327/ for humorous example of what can go wrong)." | ||||
msgstr "" | ||||
"Habituellement, vos opérations SQL devront utiliser les valeurs des " | ||||
"variables Python. Vous ne devriez pas assembler votre requête à l'aide des " | ||||
"opérations sur les chaînes de caractères de Python, car cela n'est pas sûr. " | ||||
"cela rend votre programme vulnérable à une attaque par injection SQL (voir " | ||||
"https://xkcd.com/327/ pour voir un exemple amusant de ce qui peut mal " | ||||
"tourner)." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:62 | ||||
msgid "" | ||||
| | @ -79,6 +105,11 @@ msgid "" | |||
"method. (Other database modules may use a different placeholder, such as ``" | ||||
"%s`` or ``:1``.) For example::" | ||||
msgstr "" | ||||
"A la place, substituer le paramètre de DB-API . Mettez ``? `` Comme espace " | ||||
"réservé partout où vous voulez utiliser une valeur, puis fournissez un tuple " | ||||
"de valeurs comme second argument de la méthode du curseur: meth: `~ Cursor." | ||||
"execute`. (D'autres modules de base de données peuvent utiliser un espace " | ||||
"réservé différent, tel que ``% s`` ou ``: 1``.) Par exemple ::" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:84 | ||||
msgid "" | ||||
| | @ -87,77 +118,96 @@ msgid "" | |||
"fetchone` method to retrieve a single matching row, or call :meth:`~Cursor." | ||||
"fetchall` to get a list of the matching rows." | ||||
msgstr "" | ||||
"Pour récupérer des données après avoir exécuté une instruction SELECT, vous " | ||||
"pouvez traiter le curseur comme: term: `iterator`, appeler la méthode du " | ||||
"curseur: meth:` ~ Cursor.fetchone` pour récupérer une seule ligne " | ||||
"correspondante ou appeler: meth: ` ~ Cursor.fetchall` pour obtenir une liste " | ||||
"des lignes correspondantes." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:89 | ||||
msgid "This example uses the iterator form::" | ||||
msgstr "" | ||||
msgstr "Cet exemple utilise la forme itérateur::" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:104 | ||||
msgid "https://github.com/ghaering/pysqlite" | ||||
msgstr "" | ||||
msgstr "https://github.com/ghaering/pysqlite" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:103 | ||||
msgid "" | ||||
"The pysqlite web page -- sqlite3 is developed externally under the name " | ||||
"\"pysqlite\"." | ||||
msgstr "" | ||||
"La page Web pysqlite - sqlite3 est développée en externe sous le nom " | ||||
"\"pysqlite\"." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:108 | ||||
msgid "https://www.sqlite.org" | ||||
msgstr "" | ||||
msgstr "https://www.sqlite.org" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:107 | ||||
msgid "" | ||||
"The SQLite web page; the documentation describes the syntax and the " | ||||
"available data types for the supported SQL dialect." | ||||
msgstr "" | ||||
"Dans la page Web de SQLite, la documentation décrit la syntaxe et les types " | ||||
"de données disponibles qui sont supporté et pris en charge par SQL." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:111 | ||||
msgid "https://www.w3schools.com/sql/" | ||||
msgstr "" | ||||
msgstr "https://www.w3schools.com/sql/" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:111 | ||||
msgid "Tutorial, reference and examples for learning SQL syntax." | ||||
msgstr "" | ||||
msgstr "Tutoriel, référence et exemples pour apprendre la syntaxe SQL." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:113 | ||||
msgid ":pep:`249` - Database API Specification 2.0" | ||||
msgstr "" | ||||
msgstr ":pep:`249` -Spécification de la Database API 2.0" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:114 | ||||
msgid "PEP written by Marc-André Lemburg." | ||||
msgstr "" | ||||
msgstr "PEP écrit par Marc-André Lemburg." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:120 | ||||
msgid "Module functions and constants" | ||||
msgstr "" | ||||
msgstr "Fonctions et constantes du module" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:125 | ||||
msgid "" | ||||
"The version number of this module, as a string. This is not the version of " | ||||
"the SQLite library." | ||||
msgstr "" | ||||
"Le numéro de version de ce module, sous forme de chaîne. Ce n'est pas la " | ||||
"version de la bibliothèque SQLite." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:131 | ||||
msgid "" | ||||
"The version number of this module, as a tuple of integers. This is not the " | ||||
"version of the SQLite library." | ||||
msgstr "" | ||||
"Le numéro de version de ce module, sous forme de tuple d'entiers. Ce n'est " | ||||
"pas la version de la bibliothèque SQLite." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:137 | ||||
msgid "The version number of the run-time SQLite library, as a string." | ||||
msgstr "" | ||||
"Le numéro de version de la bibliothèque d'exécution SQLite, sous forme de " | ||||
"chaîne." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:142 | ||||
msgid "" | ||||
"The version number of the run-time SQLite library, as a tuple of integers." | ||||
msgstr "" | ||||
"Le numéro de version de la bibliothèque d'exécution SQLite, sous forme " | ||||
"d'entier" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:147 ../Doc/library/sqlite3.rst:160 | ||||
msgid "" | ||||
"This constant is meant to be used with the *detect_types* parameter of the :" | ||||
"func:`connect` function." | ||||
msgstr "" | ||||
"Cette constante est destinée à être utilisée avec le paramètre * " | ||||
"detect_types * de la fonction: func: `connect`." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:150 | ||||
msgid "" | ||||
| | @ -168,6 +218,12 @@ msgid "" | |||
"look into the converters dictionary and use the converter function " | ||||
"registered for that type there." | ||||
msgstr "" | ||||
"Si vous définissez le module: mod: `sqlite3` analysera le type de donnée " | ||||
"déclarée pour chaque colonne. Il analysera le type de données déclaré, par " | ||||
"exemple pour \"clé primaire entière\", il analysera en temps qu'entier les " | ||||
"nombres comme 10, et ils seront tagué comme \"nombre\". Ensuite, pour cette " | ||||
"colonne, il examinera le dictionnaire et utilisera la fonction de " | ||||
"convertisseur pour enregistrer ce type donnée." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:163 | ||||
msgid "" | ||||
| | @ -181,12 +237,24 @@ msgid "" | |||
"parse out everything until the first blank for the column name: the column " | ||||
"name would simply be \"x\"." | ||||
msgstr "" | ||||
"Permet à l’interface SQLite d'analyser le nom pour chaque colonne. Il y " | ||||
"cherchera une chaîne formée [mytype], puis décidera de quel type est la " | ||||
"colonne ‘mytype’. Il essaiera de trouver une entrée de 'mytype' dans le " | ||||
"dictionnaire , puis utilisera la fonction de convertisseur qui s'y trouve " | ||||
"pour renvoyer la valeur. Le nom de colonne trouvé dans: attr: `Cursor." | ||||
"description` n'est que le premier mot du nom de colonne, par exemple si vous " | ||||
"utilisez quelque chose comme «x [date / heure]» dans votre code SQL, nous " | ||||
"analyserons tout jusqu'au dernier blanc du nom de la colonne: le nom de la " | ||||
"colonne sera simplement «x»." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:175 | ||||
msgid "" | ||||
"Opens a connection to the SQLite database file *database*. By default " | ||||
"returns a :class:`Connection` object, unless a custom *factory* is given." | ||||
msgstr "" | ||||
"Ouvre une connexion à la base de données SQLite * database *. Par défaut, " | ||||
"cette commande retourne un objet: class: `Connection`, sauf si la requête " | ||||
"est personnalisée." | ||||
| ||||
#: ../Doc/library/sqlite3.rst:178 | ||||
msgid "" | ||||
| | @ -936,11 +1004,11 @@ msgstr "Type Python" | |||
| ||||
#: ../Doc/library/sqlite3.rst:857 ../Doc/library/sqlite3.rst:874 | ||||
msgid "SQLite type" | ||||
msgstr "" | ||||
msgstr "SQLite type" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:859 ../Doc/library/sqlite3.rst:876 | ||||
msgid ":const:`None`" | ||||
msgstr "" | ||||
msgstr ":const:`None`" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:859 ../Doc/library/sqlite3.rst:876 | ||||
msgid "``NULL``" | ||||
| | @ -964,7 +1032,7 @@ msgstr "``REAL``" | |||
| ||||
#: ../Doc/library/sqlite3.rst:865 | ||||
msgid ":class:`str`" | ||||
msgstr "" | ||||
msgstr ":class:`str`" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:865 ../Doc/library/sqlite3.rst:882 | ||||
msgid "``TEXT``" | ||||
| | @ -972,7 +1040,7 @@ msgstr "``TEXT``" | |||
| ||||
#: ../Doc/library/sqlite3.rst:867 ../Doc/library/sqlite3.rst:885 | ||||
msgid ":class:`bytes`" | ||||
msgstr "" | ||||
msgstr ":class:`bytes`" | ||||
| ||||
#: ../Doc/library/sqlite3.rst:867 ../Doc/library/sqlite3.rst:885 | ||||
msgid "``BLOB``" | ||||
| | | |||
Loading…
Add table
Add a link
Reference in a new issue