Definition
Assembly: CloudNimble.BlazorEssentials.TursoDb.dll Namespace: CloudNimble.BlazorEssentials.TursoDb Inheritance: System.ObjectSyntax
Summary
Represents a prepared SQL statement that can be executed multiple times with different parameters for improved performance.Type Parameters
TResult- The type of result returned by queries.
Examples
Constructors
.ctor Inherited
Inherited from
objectSyntax
Properties
Sql
Gets the SQL statement.Syntax
Property Value
Type:string
StatementId
Gets the unique identifier for this prepared statement.Syntax
Property Value
Type:string
Methods
DisposeAsync
Syntax
Returns
Type:System.Threading.Tasks.ValueTask
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
QueryAsync
Executes the prepared statement as a query and returns all matching rows.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
parameters | object?[] | The parameters for the statement. |
Returns
Type:System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>
A list of matching results.
QuerySingleAsync
Executes the prepared statement as a query and returns the first matching row or null.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
parameters | object?[] | The parameters for the statement. |
Returns
Type:System.Threading.Tasks.Task<TResult?>
The first matching result or null.
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
Related APIs
- System.IAsyncDisposable