Skip to content

monolayer-pg / schema / PgInteger

Class: PgInteger

Extends

  • IdentifiableColumn<number, number | string>

Methods

default()

default(value): PgInteger & WithDefaultColumn

Parameters

ParameterType
valuestring | number | Expression<unknown>

Returns

PgInteger & WithDefaultColumn

Overrides

IdentifiableColumn.default


generatedAlwaysAsIdentity()

generatedAlwaysAsIdentity(): PgInteger & GeneratedAlwaysColumn

Returns

PgInteger & GeneratedAlwaysColumn

Inherited from

IdentifiableColumn.generatedAlwaysAsIdentity


generatedByDefaultAsIdentity()

generatedByDefaultAsIdentity(): PgInteger & GeneratedColumn

Returns

PgInteger & GeneratedColumn

Inherited from

IdentifiableColumn.generatedByDefaultAsIdentity


notNull()

notNull(): PgInteger & NonNullableColumn

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns

PgInteger & NonNullableColumn

See

PostgreSQL Docs: Not-Null Constraints

Inherited from

IdentifiableColumn.notNull