monolayer-pg / schema / pgColumnWithType
Class: pgColumnWithType<S, I>
Extends
PgColumn
<S
,I
>
Type Parameters
Type Parameter | Default type |
---|---|
S | - |
I | S |
Methods
default()
default(
value
):pgColumnWithType
<S
,I
> &WithDefaultColumn
Parameters
Parameter | Type |
---|---|
value | Expression <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