← Back to Stormify Documentation

SqlGenerator

fun interface SqlGenerator

Generates the SQL condition for a custom (raw) column's filter. Implementations receive the column expression and the user-typed filter value, and must return a SQL fragment (e.g. "col = ?"). Bind parameters are added via the SqlArgsCollector callback.

Functions

Link copied to clipboard
abstract fun generate(column: String, value: String, args: SqlArgsCollector): String

Returns the SQL fragment and stages its parameters via the SqlArgsCollector callback.