metadata-args/TableMetadataArgs.ts

typeorm · packages/typeorm/src/metadata-args/TableMetadataArgs.ts · typescript · MIT
database

TypeScript interface describing metadata arguments for TypeORM table entities.

// Source: https://github.com/typeorm/typeorm | License: MIT | Copyright 2015-2025 TypeORM. http://typeorm.github.io
// Provided via justclaw.it.com; keep this notice with the code.
import type { DataSource } from "../data-source"
import type { OrderByCondition } from "../find-options/OrderByCondition"
import type { TableType } from "../metadata/types/TableTypes"
import type { SelectQueryBuilder } from "../query-builder/SelectQueryBuilder"

/**
 * Arguments for TableMetadata class, helps to construct an TableMetadata object.
 */
export interface TableMetadataArgs {
    /**
     * Class to which table is applied.
     * Function target is a table defined in the class.
     * String target is a table defined in a json schema.
     */
    target: Function | string

    /**
     * Table's name

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key