Skip to content

monolayer / schema / PgJsonB

Class: PgJsonB<S, I> ​

Extends ​

  • PgColumn<S, I>

Type Parameters ​

Type ParameterDefault type
S extends JsonValueJsonValue
IS

Methods ​

default() ​

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

Parameters ​

ParameterType
valueExpression<unknown> | I

Returns ​

PgJsonB<S, I> & WithDefaultColumn

Overrides ​

PgColumn.default


notNull() ​

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

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns ​

PgJsonB<S, I> & NonNullableColumn

See ​

PostgreSQL Docs: Not-Null Constraints

Inherited from ​

PgColumn.notNull