StatementCollection

Description

sealed class Tinman.AddOns.SQLite.StatementCollection
<T val : Enum>

Derived from

Disposable abstract

Full source code is included in the Tinman 3D SDK download.

This is a helper class for managing a group of related prepared statements.

Public / Constructors

Statement​Collection


public constructor StatementCollection → (1)

name in : string

[not-empty]
The collection name.

Creates a new instance of StatementCollection.

Public / Methods

Prepare


public method Prepare → (3)

database in : DatabaseFile

[not-null]
The database file.

key in : T

The statement key.

sql in : string

[not-null]
The statement SQL.

Prepares a statement.

IOException

If an I/O error has occurred.

Reset


public method Reset → (1)

key in : T

The statement key.

returns → PreparedStatement

The prepared statement.

Fetches the prepared statement for key in and calls SQLite3.Reset on it (passing false to ignore errors).

IOException

If an I/O error has occurred.