Méthode | Description | |
---|---|---|
CreateDatabase ( string name ) : Unity.Core.Storage.Database.Database |
Creates and opens a database.
|
|
ExecuteSQLQuery ( Unity.Core.Storage.Database.Database db, string queryText, string queryParams ) : IResultSet |
Executes a SQL Query that should return data.
|
|
ExecuteSQLStatement ( Unity.Core.Storage.Database.Database db, string statement, string statementParams ) : bool |
Executes SQL statement, on the given database.
|
|
ExecuteSQLTransaction ( Unity.Core.Storage.Database.Database db, string statements, bool rollbackFlag ) : bool |
Executes the given SQL statements, on the given database, inside a transaction.
|
public CreateDatabase ( string name ) : Unity.Core.Storage.Database.Database | ||
name | string | Database name. |
Résultat | Unity.Core.Storage.Database.Database |
public ExecuteSQLQuery ( Unity.Core.Storage.Database.Database db, string queryText, string queryParams ) : IResultSet | ||
db | Unity.Core.Storage.Database.Database | Database reference. |
queryText | string | Query to be executed. |
queryParams | string | Values to be replaced on query string. |
Résultat | IResultSet |
public ExecuteSQLStatement ( Unity.Core.Storage.Database.Database db, string statement, string statementParams ) : bool | ||
db | Unity.Core.Storage.Database.Database | Database reference. |
statement | string | Statement to be executed. |
statementParams | string | Replacement parameters to be applied, by order, on the statement string. |
Résultat | bool |
public ExecuteSQLTransaction ( Unity.Core.Storage.Database.Database db, string statements, bool rollbackFlag ) : bool | ||
db | Unity.Core.Storage.Database.Database | Database reference. |
statements | string | Statements to be executed. |
rollbackFlag | bool | True if rollback on statement failure. |
Résultat | bool |