Skip to content

monolayer / schema / PgJson

Class: PgJson<S, I> ​

Extends ​

  • PgColumn<S, I>

Type Parameters ​

Type ParameterDefault type
S extends JsonValueJsonValue
IS

Methods ​

default() ​

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

Parameters ​

ParameterType
valueExpression<unknown> | I

Returns ​

PgJson<S, I> & WithDefaultColumn

Overrides ​

PgColumn.default


notNull() ​

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

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns ​

PgJson<S, I> & NonNullableColumn

See ​

PostgreSQL Docs: Not-Null Constraints

Inherited from ​

PgColumn.notNull