Package-level declarations

Types

Link copied to clipboard

Represents standard, built-in PostgreSQL data types. Used for type-safe type specification in the withPgType method.

Link copied to clipboard
sealed class PgType(val oid: Int, val name: String, val schema: String)

Represents a PostgreSQL data type.

Link copied to clipboard
data class PgTyped(val value: Any?, val pgType: QualifiedName)

Wraps a value to explicitly specify the target PostgreSQL type.

Properties

Link copied to clipboard

Whether this OID names an actual type rather than being UNRESOLVED_OID.

Link copied to clipboard
const val UNRESOLVED_OID: Int = 0

The OID standing for "no type resolved".

Functions

Link copied to clipboard

Wraps a value in PgTyped using explicit QualifiedName class.

Wraps a value in PgTyped to explicitly specify the target PostgreSQL type in a type-safe manner.

fun Any?.withPgType(name: String, schema: String = "", isArray: Boolean = false): PgTyped

Wraps a value in PgTyped with explicit schema and name.