Skip to content

monolayer-pg / schema / PgBytea

Class: PgBytea

Extends

  • PgColumn<Buffer, Buffer | string>

Methods

default()

default(value): PgBytea & WithDefaultColumn

Parameters

ParameterType
valuestring | Expression<unknown> | Buffer

Returns

PgBytea & WithDefaultColumn

Inherited from

PgColumn.default


notNull()

notNull(): PgBytea & NonNullableColumn

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns

PgBytea & NonNullableColumn

See

PostgreSQL Docs: Not-Null Constraints

Inherited from

PgColumn.notNull