Skip to main content
Module

x/typeorm/src/index.ts>Generated

Forked from https://github.com/typeorm/typeorm
Latest
function Generated
import { Generated } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Marks a column to generate a value on entity insertion. There are three types of generation strategy - increment, uuid and rowid (cockroachdb only). Increment uses a number which increases by one on each insertion. Uuid generates a special UUID token. Rowid supports only in CockroachDB and uses unique_rowid() function

Note, some databases do not support non-primary generation columns.

Parameters

optional
strategy: "increment" | "uuid" | "rowid" = [UNSUPPORTED]

Returns

Function