English | 简体中文

api-docs / org.ktorm.support.postgresql / PostgreSqlDialect

PostgreSqlDialect

open class PostgreSqlDialect : SqlDialect (source code)

SqlDialect implementation for PostgreSQL database.

Constructors

NameSummary

<init>

PostgreSqlDialect()

SqlDialect implementation for PostgreSQL database.

Functions

NameSummary

createSqlFormatter

open fun createSqlFormatter(
    database: Database,
    beautifySql: Boolean,
    indentSize: Int
): SqlFormatter

Create a SqlFormatter instance, formatting SQL expressions as strings with their execution arguments.

Inherited Functions

NameSummary

executeUpdateAndRetrieveKeys

open fun executeUpdateAndRetrieveKeys(
    database: Database,
    sql: String,
    args: List<ArgumentExpression<*>>
): Pair<Int, CachedRowSet>

Execute the given SQL string (typically an insert statement), then return the effected row count along with
the generated keys.