Skip to content

monolayer-pg / schema / PgBoolean

Class: PgBoolean

Extends

  • PgColumn<boolean, boolean | Boolish>

Methods

default()

default(value): PgBoolean & WithDefaultColumn

Parameters

ParameterType
valueboolean | Expression<unknown> | Boolish

Returns

PgBoolean & WithDefaultColumn

Inherited from

PgColumn.default


notNull()

notNull(): PgBoolean & NonNullableColumn

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns

PgBoolean & NonNullableColumn

See

PostgreSQL Docs: Not-Null Constraints

Inherited from

PgColumn.notNull