Skip to content

monolayer-pg / schema / pgColumnWithType

Class: pgColumnWithType<S, I>

Extends

  • PgColumn<S, I>

Type Parameters

Type ParameterDefault type
S-
IS

Methods

default()

default(value): pgColumnWithType<S, I> & WithDefaultColumn

Parameters

ParameterType
valueExpression<unknown>

Returns

pgColumnWithType<S, I> & WithDefaultColumn

Overrides

PgColumn.default


notNull()

notNull(): pgColumnWithType<S, I> & NonNullableColumn

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns

pgColumnWithType<S, I> & NonNullableColumn

See

PostgreSQL Docs: Not-Null Constraints

Inherited from

PgColumn.notNull