Skip to content

monolayer-pg / schema / PgText

Class: PgText

Extends

  • PgColumn<string, string>

Methods

default()

default(value): PgText & WithDefaultColumn

Parameters

ParameterType
valuestring | Expression<unknown>

Returns

PgText & WithDefaultColumn

Inherited from

PgColumn.default


notNull()

notNull(): PgText & NonNullableColumn

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns

PgText & NonNullableColumn

See

PostgreSQL Docs: Not-Null Constraints

Inherited from

PgColumn.notNull