UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2023+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

28 lines (27 loc) 650 B
import type { DataSource } from "../../data-source"; import type { SelectQueryBuilder } from "../../query-builder/SelectQueryBuilder"; /** * View options. */ export interface ViewOptions { /** * Database name that this table resides in if it applies. */ database?: string; /** * Schema name that this table resides in if it applies. */ schema?: string; /** * View name. */ name: string; /** * View expression. */ expression: string | ((dataSource: DataSource) => SelectQueryBuilder<any>); /** * Indicates if view is materialized */ materialized?: boolean; }