SqlValue Module
Helpers for constructing SqlValue instances from primitive values and for extracting strongly-typed values back out, with descriptive errors when the underlying case does not match the expected SQLite storage class.
Functions and values
| Function or value |
Description
|
Full Usage:
SqlValue.asInt column value
Parameters:
string
-
Logical column name used in error messages.
value : SqlValue
-
The value to project.
Returns: int
|
Extracts a required integer value. Raises ArgumentException if the value is SqlValue.Null or non-integer.
|
Full Usage:
SqlValue.asText column value
Parameters:
string
-
Logical column name used in error messages.
value : SqlValue
-
The value to project.
Returns: string
|
Extracts a required text value. Raises ArgumentException if the value is SqlValue.Null or non-textual; the column name is included in the error so callers can identify the offending column.
|
Full Usage:
SqlValue.asTextOption column value
Parameters:
string
-
Logical column name used in error messages.
value : SqlValue
-
The value to project.
Returns: string option
|
Extracts an optional text value, returning
|
|
|
|
Lifts a string option to an SqlValue, mapping
|
ProcessCore