Interface IStatement
Definition
- Assembly:
- Tizen.Data.Tdbc.dll
TDBC interface for representing statement.
public interface IStatement : IDisposable
Methods
View SourceExecute(Sql)
Executes the given Sql.
Declaration
bool Execute(Sql sql)
Parameters
Type | Name | Description |
---|---|---|
Sql | sql | The sql to execute. |
Returns
Type | Description |
---|---|
bool | True if the execution was success, otherwise false. |
ExecuteAsync(Sql)
Executes the given Sql asynchronously.
Declaration
Task<bool> ExecuteAsync(Sql sql)
Parameters
Type | Name | Description |
---|---|---|
Sql | sql | The sql to execute. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><bool> | True if the execution was success, otherwise false. |
ExecuteQuery(Sql)
Executes the given Sql.
Declaration
IResultSet ExecuteQuery(Sql sql)
Parameters
Type | Name | Description |
---|---|---|
Sql | sql | The sql to execute. |
Returns
Type | Description |
---|---|
IResultSet | The ResultSet object that includes the result of the query. |
ExecuteQueryAsync(Sql)
Executes the given Sql asynchronously.
Declaration
Task<IResultSet> ExecuteQueryAsync(Sql sql)
Parameters
Type | Name | Description |
---|---|---|
Sql | sql | The sql to execute. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><IResultSet> | The ResultSet object that includes the result of the query. |
ExecuteUpdate(Sql)
Executes the given Sql.
Declaration
int ExecuteUpdate(Sql sql)
Parameters
Type | Name | Description |
---|---|---|
Sql | sql | The sql to execute. |
Returns
Type | Description |
---|---|
int | The number of rows updated. |
ExecuteUpdateAsync(Sql)
Executes the given Sql asynchronously.
Declaration
Task<int> ExecuteUpdateAsync(Sql sql)
Parameters
Type | Name | Description |
---|---|---|
Sql | sql | The sql to execute. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><int> | The number of rows updated. |