api-docs / org.ktorm.support.postgresql
Package org.ktorm.support.postgresql
PostgreSQL dialect module for Ktorm.
Types
Name | Summary |
---|---|
data class BulkInsertExpression : SqlExpression Bulk insert expression, represents a bulk insert statement in PostgreSQL. | |
class BulkInsertOrUpdateStatementBuilder<T : BaseTable<*>> : DSL builder for bulk insert or update statements. | |
open class BulkInsertStatementBuilder<T : BaseTable<*>> DSL builder for bulk insert statements. | |
data class Cube Represents a box suitable for an indexed search using the cube @> operator. | |
data class CubeExpression<T : Any> : ScalarExpression<T> Expression class represents PostgreSQL | |
enum class CubeExpressionType Enum for ‘cube’ and ‘earthdistance’ binary operators. | |
Represents a Cube by storing 2 n-dimensional points | |
data class DefaultValueExpression<T : Any> : Default value expression, translated to the | |
Cube-based earth abstraction, using 3 coordinates representing the x, y, and z distance from the center of the Earth. | |
data class HStoreExpression<T : Any> : ScalarExpression<T> Expression class represents PostgreSQL | |
enum class HStoreExpressionType Enum for | |
SqlType implementation represents PostgreSQL | |
data class ILikeExpression : ScalarExpression<Boolean> ILike expression, represents PostgreSQL | |
data class InsertOrUpdateExpression : SqlExpression Insert or update expression, represents an insert statement with an | |
class InsertOrUpdateOnConflictClauseBuilder : DSL builder for insert or update on conflict clause. | |
class InsertOrUpdateStatementBuilder : DSL builder for insert or update statements. | |
data class LockingClause PostgreSQL locking clause. See https://www.postgresql.org/docs/13/sql-select.html#SQL-FOR-UPDATE-SHARE | |
enum class LockingMode PostgreSQL locking mode. | |
enum class LockingWait PostgreSQL wait strategy for locked records. | |
open class PostgreSqlAssignmentsBuilder : AssignmentsBuilder Base class of PostgreSQL DSL builders, provide basic functions used to build assignments for insert or update DSL. | |
open class PostgreSqlDialect : SqlDialect SqlDialect implementation for PostgreSQL database. | |
interface PostgreSqlExpressionVisitor : SqlExpressionVisitor Base interface designed to visit or modify PostgreSQL expression trees using visitor pattern. | |
open class PostgreSqlFormatter : SqlFormatter implementation for PostgreSQL, formatting SQL expressions as strings with their execution arguments. | |
SqlType implementation represents PostgreSQL |
Type Aliases
Name | Summary |
---|---|
Cube-based earth abstraction, using 3 coordinates representing the x, y, and z distance from the center of the Earth. | |
Represent values of PostgreSQL | |
Represent values of PostgreSQL |
Functions
Name | Summary |
---|---|
fun <T : BaseTable<*>> Database.bulkInsert( Bulk insert records to the table and return the effected row count. Construct a bulk insert expression in the given closure, then execute it and return the | |
fun <T : BaseTable<*>> Database.bulkInsertOrUpdate( fun <T : BaseTable<*>> T. Bulk insert records to the table, determining if there is a key conflict while inserting each of them, | |
fun <T : BaseTable<*>, C : Any> Database.bulkInsertOrUpdateReturning( Bulk insert records to the table, determining if there is a key conflict while inserting each of them, fun <T : BaseTable<*>, C1 : Any, C2 : Any> Database.bulkInsertOrUpdateReturning( fun <T : BaseTable<*>, C1 : Any, C2 : Any, C3 : Any> Database.bulkInsertOrUpdateReturning( Bulk insert records to the table, determining if there is a key conflict while inserting each of them, | |
fun <T : BaseTable<*>, C : Any> Database.bulkInsertReturning( Bulk insert records to the table and return the specific column’s values. fun <T : BaseTable<*>, C1 : Any, C2 : Any> Database.bulkInsertReturning( fun <T : BaseTable<*>, C1 : Any, C2 : Any, C3 : Any> Database.bulkInsertReturning( Bulk insert records to the table and return the specific columns’ values. | |
fun ColumnDeclaring<Cube>.containedIn( fun ColumnDeclaring<Cube>.containedIn( fun ColumnDeclaring<Earth>.containedIn( fun ColumnDeclaring<Earth>.containedIn( Cube contained in operator, translated to the <@ operator in PostgreSQL. fun ColumnDeclaring<HStore>.containedIn( fun ColumnDeclaring<HStore>.containedIn( HStore contained-in operator, translated to the <@ operator in PostgreSQL. | |
fun ColumnDeclaring<Cube>.contains( fun ColumnDeclaring<Cube>.contains( fun ColumnDeclaring<Cube>.contains( fun ColumnDeclaring<Cube>.contains( Cube contains operator, translated to the @> operator in PostgreSQL. fun ColumnDeclaring<HStore>.contains( fun ColumnDeclaring<HStore>.contains( HStore contains operator, translated to the @> operator in PostgreSQL. | |
fun ColumnDeclaring<HStore>.containsAll( fun ColumnDeclaring<HStore>.containsAll( HStore contains-all-keys operator, translated to the ?& operator in PostgreSQL. | |
fun ColumnDeclaring<HStore>.containsAny( fun ColumnDeclaring<HStore>.containsAny( HStore contains-any-keys operator, translated to the ?| operator in PostgreSQL. | |
fun ColumnDeclaring<HStore>.containsKey( fun ColumnDeclaring<HStore>.containsKey( HStore contains-key operator, translated to the ? operator in PostgreSQL. | |
Define a column typed CubeSqlType. | |
fun <T : Any> Column<T>.defaultValue(): DefaultValueExpression<T> Return a default value for this column, see DefaultValueExpression. | |
Define a column typed EarthSqlType. | |
fun earthBox( fun earthBox( fun earthBox( fun earthBox( Returns a box suitable for an indexed search using the cube @> operator for points within a given great circle | |
fun earthDistance( fun earthDistance( fun earthDistance( fun earthDistance( Returns the great circle distance between two points on the surface of the Earth. | |
operator fun ColumnDeclaring<HStore>.get( operator fun ColumnDeclaring<HStore>.get( HStore get-value-for-key operator, translated to the -> operator in PostgreSQL. operator fun ColumnDeclaring<HStore>.get( operator fun ColumnDeclaring<HStore>.get( HStore get-values-for-keys operator, translated to the -> operator in PostgreSQL. | |
Define a column typed HStoreSqlType. | |
infix fun ColumnDeclaring<*>.ilike( infix fun ColumnDeclaring<*>.ilike( ILike operator, translated to the | |
fun <T : BaseTable<*>> Database.insertOrUpdate( Insert a record to the table, determining if there is a key conflict while it’s being inserted, and automatically | |
fun <T : BaseTable<*>, C : Any> Database.insertOrUpdateReturning( Insert a record to the table, determining if there is a key conflict while it’s being inserted, automatically fun <T : BaseTable<*>, C1 : Any, C2 : Any> Database.insertOrUpdateReturning( fun <T : BaseTable<*>, C1 : Any, C2 : Any, C3 : Any> Database.insertOrUpdateReturning( Insert a record to the table, determining if there is a key conflict while it’s being inserted, automatically | |
fun <T : BaseTable<*>, C : Any> Database.insertReturning( Insert a record to the table and return the specific column. fun <T : BaseTable<*>, C1 : Any, C2 : Any> Database.insertReturning( fun <T : BaseTable<*>, C1 : Any, C2 : Any, C3 : Any> Database.insertReturning( Insert a record to the table and return the specific columns. | |
fun latitude( fun latitude(earth: Earth): FunctionExpression<Double> Returns the latitude in degrees of a point on the surface of the Earth. | |
fun llToEarth( fun llToEarth( fun llToEarth( fun llToEarth( Returns the location of a point on the surface of the Earth | |
fun Query.locking( fun <E : Any, T : BaseTable<E>> EntitySequence<E, T>.locking( Specify the locking clause of this query, an example generated SQL could be: | |
fun longitude( fun longitude(earth: Earth): FunctionExpression<Double> Returns the longitude in degrees of a point on the surface of the Earth. | |
operator fun ColumnDeclaring<HStore>.minus( operator fun ColumnDeclaring<HStore>.minus( HStore delete-key operator, translated to the - operator in PostgreSQL. operator fun ColumnDeclaring<HStore>.minus( operator fun ColumnDeclaring<HStore>.minus( HStore delete-keys operator, translated to the - operator in PostgreSQL. operator fun ColumnDeclaring<HStore>.minus( operator fun ColumnDeclaring<HStore>.minus( HStore delete-matching-pairs operator, translated to the - operator in PostgreSQL. | |
fun ColumnDeclaring<Cube>.overlaps( fun ColumnDeclaring<Cube>.overlaps( Cube overlap operator, translated to the && operator in PostgreSQL. | |
operator fun ColumnDeclaring<HStore>.plus( operator fun ColumnDeclaring<HStore>.plus( HStore concatenate operator, translated to the || operator in PostgreSQL. | |
Define a column typed TextArraySqlType. |