api-docs / org.ktorm.support.sqlserver / SqlServerFormatter
SqlServerFormatter
open class SqlServerFormatter : SqlFormatter
(source code)SqlFormatter implementation for SqlServer, formatting SQL expressions as strings with their execution arguments.
Constructors
Name | Summary |
---|---|
SqlFormatter implementation for SqlServer, formatting SQL expressions as strings with their execution arguments. |
Inherited Properties
Name | Summary |
---|---|
val _builder: StringBuilder | |
var _depth: Int | |
val _parameters: <ERROR CLASS><ArgumentExpression<*>> | |
val beautifySql: Boolean mark if we should output beautiful SQL strings with line-wrapping and indentation. | |
val database: Database the current database object used to obtain metadata such as identifier quote string. | |
val indentSize: Int the indent size. | |
val parameters: List<ArgumentExpression<*>> return the SQL execution parameters after the visit completes. | |
val SqlExpression.removeBrackets: Boolean | |
val sql: String return the executable SQL string after the visit completes. |
Functions
Name | Summary |
---|---|
open fun visitQuery(expr: QueryExpression): QueryExpression Function that visits a QueryExpression. | |
open fun visitWindowFrameBound( Function that visits a WindowFrameBoundExpression. | |
open fun writePagination(expr: QueryExpression): Unit |
Inherited Functions
Name | Summary |
---|---|
fun newLine(indent: SqlFormatter.Indentation): Unit | |
fun removeLastBlank(): Unit | |
open fun visit(expr: SqlExpression): SqlExpression Dispatch different type of expression nodes to their specific | |
open fun <T : Any> visitAggregate( Function that visits an AggregateExpression. | |
open fun <T : Any> visitArgument( Function that visits an ArgumentExpression. | |
open fun visitBetween( Function that visits a BetweenExpression. | |
open fun <T : Any> visitBinary( Function that visits a BinaryExpression. | |
open fun <T : Any> visitCaseWhen( Function that visits a CaseWhenExpression. | |
open fun <T : Any> visitCasting( Function that visits a CastingExpression. | |
open fun <T : Any> visitColumn( Function that visits a ColumnExpression. | |
open fun <T : Any> visitColumnDeclaring( Function that visits a ColumnDeclaringExpression. | |
fun <T : Any> visitColumnDeclaringAtSelectClause( | |
open fun visitDelete( Function that visits a DeleteExpression. | |
open fun visitExists( Function that visits an ExistsExpression. | |
Helper function for visiting a list of expressions. | |
open fun <T : Any> visitFunction( Function that visits a FunctionExpression. | |
open fun visitInList( Function that visits an InListExpression. | |
open fun visitInsert( Function that visits an InsertExpression. | |
open fun visitInsertFromQuery( Function that visits an InsertFromQueryExpression. | |
open fun visitJoin(expr: JoinExpression): JoinExpression Function that visits a JoinExpression. | |
open fun visitOrderBy( Function that visits an OrderByExpression. | |
open fun visitQuerySource( Function that visits a QuerySourceExpression. | |
open fun visitSelect( Function that visits a SelectExpression. | |
open fun visitTable(expr: TableExpression): TableExpression Function that visits a TableExpression. | |
open fun <T : Any> visitUnary( Function that visits an UnaryExpression. | |
open fun visitUnion(expr: UnionExpression): UnionExpression Function that visits an UnionExpression. | |
open fun visitUnknown(expr: SqlExpression): SqlExpression Function that visits an unknown expression. | |
open fun visitUpdate( Function that visits an UpdateExpression. | |
open fun <T : Any> visitWindowFunction( Function that visits a WindowFunctionExpression. | |
open fun visitWindowSpecification( Function that visits a WindowSpecificationExpression. | |
fun writeColumnAssignments( | |
fun writeInsertColumnNames( | |
fun writeInsertValues( | |
Extension Functions
Name | Summary |
---|---|
infix fun <T : Any> T.eq( Equal operator, translated to | |
infix fun <T : Any> T.neq( Not-equal operator, translated to | |
infix fun <T : Any> T.notEq( Not-equal operator, translated to |