C# Class Unity.Platform.Windows.WindowsDatabase

Inheritance: Unity.Core.Storage.Database.AbstractDatabase
Show file Open project: Appverse/appverse-mobile Class Usage Examples

Public Methods

Method 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 method

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

ExecuteSQLQuery() public method

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.
return IResultSet

ExecuteSQLStatement() public method

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.
return bool

ExecuteSQLTransaction() public method

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.
return bool