UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.

27 lines (26 loc) 571 B
import { DataSource, SelectQueryBuilder } from "../.."; /** * 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 | ((connection: DataSource) => SelectQueryBuilder<any>); /** * Indicates if view is materialized */ materialized?: boolean; }