Class: PgJson<S, I>
Extends
PgColumn
<S
,I
>
Type Parameters
Type Parameter | Default type |
---|---|
S extends JsonValue | JsonValue |
I | S |
Methods
default()
default(
value
):PgJson
<S
,I
> &WithDefaultColumn
Parameters
Parameter | Type |
---|---|
value | Expression <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