Skip to main content

Definition

Assembly: CloudNimble.BlazorEssentials.TursoDb.dll Namespace: CloudNimble.BlazorEssentials.TursoDb Inheritance: System.Object

Syntax

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 object

Syntax

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 object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

QueryAsync

Executes the prepared statement as a query and returns all matching rows.

Syntax

Parameters

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

Returns

Type: System.Threading.Tasks.Task<TResult?> The first matching result or null.

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?
  • System.IAsyncDisposable