ViewEntityOptions.ts from typeorm/typeorm
// 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 { SelectQueryBuilder } from "../../query-builder/SelectQueryBuilder"
/**
* Describes all entity view's options.
*/
export interface ViewEntityOptions {
/**
* View name.
* If not specified then naming strategy will generate view name from class name.
*/
name?: string
/**
* View expression.
*/
expression?: string | ((dataSource: DataSource) => SelectQueryBuilder<any>)
/**
* Database name. Used in Mysql and Sql Server.
*/
database?: string
/**
* Schema name. Used in Postgres and
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key