SQLiteFormatter

open class SQLiteFormatter(database: Database, beautifySql: Boolean, indentSize: Int) : SqlFormatter, SQLiteExpressionVisitor(source)

SqlFormatter implementation for SQLite, formatting SQL expressions as strings with their execution arguments.

Constructors

Link copied to clipboard
constructor(database: Database, beautifySql: Boolean, indentSize: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sql: String

Functions

Link copied to clipboard
open override fun visit(expr: SqlExpression): SqlExpression

Dispatch different type of expression nodes to their specific visit* functions. Custom expression types that are unknown to Ktorm will be dispatched to visitUnknown.

Link copied to clipboard
Link copied to clipboard
open override fun <T : Any> visitArgument(expr: ArgumentExpression<T>): ArgumentExpression<T>
Link copied to clipboard
Link copied to clipboard
open override fun <T : Any> visitBinary(expr: BinaryExpression<T>): BinaryExpression<T>
Link copied to clipboard

Function that visits a BulkInsertExpression.

Link copied to clipboard

Helper function for visiting insert assignments of BulkInsertExpression.

Link copied to clipboard
open override fun <T : Any> visitCaseWhen(expr: CaseWhenExpression<T>): CaseWhenExpression<T>
Link copied to clipboard
open override fun <T : Any> visitCasting(expr: CastingExpression<T>): CastingExpression<T>
Link copied to clipboard
open override fun <T : Any> visitColumn(expr: ColumnExpression<T>): ColumnExpression<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun <T : SqlExpression> visitExpressionList(original: List<T>, subVisitor: (T) -> T): List<T>
Link copied to clipboard
open override fun <T : Any> visitFunction(expr: FunctionExpression<T>): FunctionExpression<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun visitJoin(expr: JoinExpression): JoinExpression
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun visitTable(expr: TableExpression): TableExpression
Link copied to clipboard
open override fun <T : Any> visitUnary(expr: UnaryExpression<T>): UnaryExpression<T>
Link copied to clipboard
open override fun visitUnion(expr: UnionExpression): UnionExpression
Link copied to clipboard
open override fun visitUnknown(expr: SqlExpression): SqlExpression
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard