C# Class Unity.Platform.Windows.WindowsDatabase

Inheritance: Unity.Core.Storage.Database.AbstractDatabase
Afficher le fichier Open project: Appverse/appverse-mobile Class Usage Examples

Méthodes publiques

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.

Method Details

CreateDatabase() public méthode

Creates and opens a database.
public CreateDatabase ( string name ) : Unity.Core.Storage.Database.Database
name string Database name.
Résultat Unity.Core.Storage.Database.Database

ExecuteSQLQuery() public méthode

Executes a SQL Query that should return data.
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

ExecuteSQLStatement() public méthode

Executes SQL statement, on the given database.
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

ExecuteSQLTransaction() public méthode

Executes the given SQL statements, on the given database, inside a transaction.
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