Skip to content

monolayer / schema / PgCharacterVarying

Class: PgCharacterVarying

Extends

  • MaxLengthColumn<string, string>

Methods

default()

default(value): PgCharacterVarying & WithDefaultColumn

Parameters

ParameterType
valuestring | Expression<unknown>

Returns

PgCharacterVarying & WithDefaultColumn

Inherited from

MaxLengthColumn.default


notNull()

notNull(): PgCharacterVarying & NonNullableColumn

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns

PgCharacterVarying & NonNullableColumn

See

PostgreSQL Docs: Not-Null Constraints

Inherited from

MaxLengthColumn.notNull