QualifiedName

data class QualifiedName(val schema: String, val name: String, val isArray: Boolean = false)

Represents a qualified PostgreSQL name (schema + object name). Handles quoting correctly even if names contain dots.

Constructors

Link copied to clipboard
constructor(schema: String, name: String, isArray: Boolean = false)

Properties

Link copied to clipboard

Indicates whether this qualified name refers to an array type (appends []).

Link copied to clipboard

The object name (e.g., table or type name).

Link copied to clipboard

The schema name. If empty, the object belongs to the default schema.

Functions

Link copied to clipboard

Returns this name as the array type over it — senator becomes senator[].

Link copied to clipboard
fun quote(): String

Returns a SQL-safe representation. Respects existing quotes and adds new ones only if necessary (e.g. dots in name).

Link copied to clipboard
open override fun toString(): String