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

ColumnEntity

import type { ColumnEntity } from "https://googleapis.deno.dev/v1/datamigration:v1.ts";

Column is not used as an independent entity, it is retrieved as part of a Table entity.

interface ColumnEntity {
array?: boolean;
arrayLength?: number;
autoGenerated?: boolean;
charset?: string;
collation?: string;
comment?: string;
customFeatures?: {
[key: string]: any;
}
;
dataType?: string;
defaultValue?: string;
fractionalSecondsPrecision?: number;
length?: bigint;
name?: string;
nullable?: boolean;
ordinalPosition?: number;
precision?: number;
scale?: number;
setValues?: string[];
udt?: boolean;
}

§Properties

§
array?: boolean
[src]

Is the column of array type.

§
arrayLength?: number
[src]

If the column is array, of which length.

§
autoGenerated?: boolean
[src]

Is the column auto-generated/identity.

§
charset?: string
[src]

Charset override - instead of table level charset.

§
collation?: string
[src]

Collation override - instead of table level collation.

§
comment?: string
[src]

Comment associated with the column.

§
customFeatures?: {
[key: string]: any;
}
[src]

Custom engine specific features.

§
dataType?: string
[src]

Column data type.

§
defaultValue?: string
[src]

Default value of the column.

§
fractionalSecondsPrecision?: number
[src]

Column fractional second precision - used for timestamp based datatypes.

§
length?: bigint
[src]

Column length - e.g. varchar (50).

§
name?: string
[src]

Column name.

§
nullable?: boolean
[src]

Is the column nullable.

§
ordinalPosition?: number
[src]

Column order in the table.

§
precision?: number
[src]

Column precision - when relevant.

§
scale?: number
[src]

Column scale - when relevant.

§
setValues?: string[]
[src]

Specifies the list of values allowed in the column. Only used for set data type.

§
udt?: boolean
[src]

Is the column a UDT.