api-docs / org.ktorm.database / Database / formatExpression
formatExpression
fun formatExpression(
expression: SqlExpression,
beautifySql: Boolean = false,
indentSize: Int = 2
): Pair<String, List<ArgumentExpression<*>>>
(source code)Format the specific SqlExpression to an executable SQL string with execution arguments.
Parameters
expression
- the expression to be formatted.
beautifySql
- output beautiful SQL strings with line-wrapping and indentation, default to false
.
indentSize
- the indent size, default to 2.
Return
a Pair combines the SQL string and its execution arguments.