fr:code:data:sql
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| fr:code:data:sql [2012/03/22 16:01] – créée wismerheal | fr:code:data:sql [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Sql [En cours de Traduction Wismerheal][WSL] | + | ====== Sql ====== |
| - | This object allows you to establish a connection to a SQL database like MySQL, PostgreSQL, SQLite | + | Cet objet vous permet d' |
| - | ===== Functions | + | ===== Fonctions |
| ==== Sql ==== | ==== Sql ==== | ||
| - | Constructor function. | + | Fontion de construction. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| var myObject = new Sql(driver); | var myObject = new Sql(driver); | ||
| Ligne 13: | Ligne 13: | ||
| === Arguments === | === Arguments === | ||
| - | - driver - ([[# | + | - driver - ([[# |
| === Exceptions === | === Exceptions === | ||
| - | * (NoDatabaseDriverError) | + | * (NoDatabaseDriverError) |
| === Example === | === Example === | ||
| - | Create a Sql object operating on a MySQL database. | + | Créer un objet Sql utlisant une base de données |
| <code javascript> | <code javascript> | ||
| var myObject = new Sql(Sql.MySQL); | var myObject = new Sql(Sql.MySQL); | ||
| Ligne 25: | Ligne 24: | ||
| === Notes === | === Notes === | ||
| - | On Windows only the MySQL, PostgreSQL, SQLite 3, Firebird | + | Les pilotes |
| - | To see all available drivers call the [[# | + | Pour voir tous les pilotes disponibles il vous faut appeler |
| ==== drivers ==== | ==== drivers ==== | ||
| - | Returns a list of available Drivers. | + | Renvoie une liste des Pilotes disponibles. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| Sql.drivers(); | Sql.drivers(); | ||
| </ | </ | ||
| - | ===== Methods | + | ===== Méthodes |
| ==== connect ==== | ==== connect ==== | ||
| - | Opens a connection with a database. | + | Ouvrir une connexion avec une base de données. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.connect(parameters); | myObject.connect(parameters); | ||
| Ligne 47: | Ligne 46: | ||
| === Arguments === | === Arguments === | ||
| - | - parameters - (object) | + | - parameters - (object) |
| - | * hostName - (string) | + | * hostName - (string) |
| - | * port - (integer) | + | * port - (integer) |
| - | * databaseName - (string) | + | * databaseName - (string) |
| - | * userName - (string) | + | * userName - (string) |
| - | * password - (string) | + | * password - (string) |
| - | * options - (string) | + | * options - (string) |
| - | === Returns | + | === Renvoie |
| - | * (Sql) this Sql | + | * (Sql) ce Sql |
| === Exceptions === | === Exceptions === | ||
| - | * (DatabaseDriverUnavailableError) | + | * (DatabaseDriverUnavailableError) |
| - | * (ConnectionError) | + | * (ConnectionError) |
| ==== prepare ==== | ==== prepare ==== | ||
| - | Prepare a request on the current database. | + | Préparer une requête sur la base de données actuelle. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.prepare(queryString, | myObject.prepare(queryString, | ||
| Ligne 71: | Ligne 70: | ||
| === Arguments === | === Arguments === | ||
| - | - queryString - (string) | + | - queryString - (string) |
| - | - parameters - (object) | + | - parameters - (object) |
| - | === Returns | + | === REnvoie |
| - | * (Sql) this Sql | + | * (Sql) ce Sql |
| === Exceptions === | === Exceptions === | ||
| - | * (PrepareQueryError) | + | * (PrepareQueryError) |
| - | === Example | + | === Exemple |
| <code javascript> | <code javascript> | ||
| myObject.prepare(" | myObject.prepare(" | ||
| Ligne 89: | Ligne 88: | ||
| ==== execute ==== | ==== execute ==== | ||
| - | Execute a prepared request or executes a request on the current database. | + | Exécuter une requête préparée ou exécuter une requête sur la base de données actuelle. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.execute(queryString); | myObject.execute(queryString); | ||
| Ligne 100: | Ligne 99: | ||
| === Arguments === | === Arguments === | ||
| - | - queryString - (string) | + | - queryString - (string) |
| - | === Returns | + | === Renvoie |
| - | * (Sql) this Sql | + | * (Sql) ce Sql |
| === Exceptions === | === Exceptions === | ||
| - | * (ExecuteQueryError) | + | * (ExecuteQueryError) |
| ==== fetchResult ==== | ==== fetchResult ==== | ||
| - | Retrieves the result of an executed request. | + | Retrouver le résultat d'une requête précédemment exécutée. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.fetchResult(indexStyle); | myObject.fetchResult(indexStyle); | ||
| Ligne 120: | Ligne 119: | ||
| === Arguments === | === Arguments === | ||
| - | - indexStyle - ([[# | + | - indexStyle - ([[# |
| === Returns === | === Returns === | ||
| - | * (Sql) this Sql | + | * (Sql) ce Sql |
| === Exceptions === | === Exceptions === | ||
| - | * (FetchError) | + | * (FetchError) |
| ==== disconnect ==== | ==== disconnect ==== | ||
| - | Disconnects the current database connection. | + | Déconnecter de la base de données actuelle. |
| - | === Syntax | + | === Syntaxe |
| <code javascript> | <code javascript> | ||
| myObject.disconnect(); | myObject.disconnect(); | ||
| </ | </ | ||
| - | === Returns | + | === Renvoie |
| - | * (Sql) this Sql | + | * (Sql) ce Sql |
| ===== Enumerations ===== | ===== Enumerations ===== | ||
| ==== Driver ==== | ==== Driver ==== | ||
| - | SQL drivers. On Windows only the MySQL, PostgreSQL, SQLite 3, Firebird | + | Les pilotes |
| - | === Values | + | === Valeurs |
| - SQLite2: [[http:// | - SQLite2: [[http:// | ||
| - SQLite: [[http:// | - SQLite: [[http:// | ||
| - | - PostgreSQL: [[http:// | + | - PostgreSQL: [[http:// |
| - MySQL: [[http:// | - MySQL: [[http:// | ||
| - | - ODBC: [[http:// | + | - ODBC: [[http:// |
| - InterBase: [[http:// | - InterBase: [[http:// | ||
| - OCI: [[http:// | - OCI: [[http:// | ||
| - | - TDS: [[http:// | + | - TDS: [[http:// |
| - | - DB2: [[http:// | + | - DB2: [[http:// |
| ==== IndexStyle ==== | ==== IndexStyle ==== | ||
| - | The fetch index style. | + | Retrouver le style d'un index. |
| - | === Values | + | === Valeurs |
| - | - IndexNumber: | + | - IndexNumber: |
| - | - IndexName: | + | - IndexName: |
fr/code/data/sql.1332432102.txt.gz · Dernière modification : (modification externe)
