Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PgArray

class PgArray<T extends ColumnBaseConfig> extends PgColumn<PgArrayHKT, T, {}, {
baseColumn: BuildColumn<string, Assume<PgColumnBuilder<PgColumnBuilderHKT, {
name: T["name"];
notNull: T["notNull"];
hasDefault: T["hasDefault"];
data: Assume<T["data"], unknown[]>[number];
driverParam: Assume<T["driverParam"], unknown[]>[number];
}
>
, AnyColumnBuilder>
>
;
}
>
{
constructor(
table: AnyPgTable<{
name: T["tableName"];
}
>
,
config: PgArrayBuilder<T>["config"],
baseColumn: AnyPgColumn,
range?: [number | undefined, number | undefined] | undefined,
);
protected $pgColumnBrand: "PgArray";
readonly baseColumn: AnyPgColumn;
readonly range?: [number | undefined, number | undefined] | undefined;
readonly size: number | undefined;
 
getSQLType(): string;
mapFromDriverValue(value: unknown[] | string): T["data"];
mapToDriverValue(value: unknown[]): string;
}

§Type Parameters

§Extends

§
PgColumn<PgArrayHKT, T, {}, {
baseColumn: BuildColumn<string, Assume<PgColumnBuilder<PgColumnBuilderHKT, {
name: T["name"];
notNull: T["notNull"];
hasDefault: T["hasDefault"];
data: Assume<T["data"], unknown[]>[number];
driverParam: Assume<T["driverParam"], unknown[]>[number];
}
>
, AnyColumnBuilder>
>
;
}
>
[src]

§Constructors

§
new PgArray(table: AnyPgTable<{
name: T["tableName"];
}
>
, config: PgArrayBuilder<T>["config"], baseColumn: AnyPgColumn, range?: [number | undefined, number | undefined] | undefined)
[src]

§Properties

§
$pgColumnBrand: "PgArray"
[src]
§
baseColumn: AnyPgColumn
[src]
§
range: [number | undefined, number | undefined] | undefined
[src]
§
size: number | undefined
[src]

§Methods

§
getSQLType(): string
[src]
§
mapFromDriverValue(value: unknown[] | string): T["data"]
[src]
§
mapToDriverValue(value: unknown[]): string
[src]