Show / Hide Table of Contents

Method sqlite.GetStruct


Overload

Executes single SQL statement and gets single value.

public bool GetStruct<T>(out T value, string sql, params object[] bind) where T : unmanaged
Parameters
value  (T)

Receives data.

sql  (string)

Single SQL statement.

bind  (object[])

Values that will replace ? characters in sql. Read about SQL parameters in SQLite website. Supported types: sqliteStatement.BindAll. Example: sqlite.

Returns
bool

false if the statement returned no data.

Exceptions
SLException

Failed.

NotSupportedException

sql contains more than single SQL statement.

Type Parameters
T

Remarks

Can be used to get various value types, for example decimal, Guid, RECT.