createEmptyRange

fun createEmptyRange(typeName: String, schema: String = ""): PgRange

Creates an empty PostgreSQL range type using its name and schema.

Return

An empty PgRange instance.

Parameters

typeName

The name of the range type.

schema

The schema where the range type is defined (defaults to empty for search path).

Throws

if the type cannot be found.


Creates an empty PostgreSQL range type using its Object ID (OID).

Return

An empty PgRange instance.

Parameters

oid

The OID of the range type.

Throws

if the type is not found or is not a range.