klyn.data.sql.SQLDialect.slice
method
public slice(value as String, start as String, length as String = "") as String
Description

Renders a zero-based Klyn string slice from a normalized start and length.

The provider translator normalizes omitted, negative, and out-of-range Klyn bounds before invoking the dialect. Implementations only adapt the zero-based coordinates to their native SQL text function.

Parameters
ParameterDescription
valueSQL expression producing the source string.
startNormalized zero-based start SQL expression.
lengthNormalized non-negative length SQL expression, or an empty string when the slice extends to the end.
Returns

SQL expression producing the requested text slice.

Example
dialect = SQLiteDialect()
sql = dialect.slice("\"name\"", "1", "3")