(name: string, schema: string | undefined | null, comment?: string)
| 36 | } |
| 37 | |
| 38 | addTable(name: string, schema: string | undefined | null, comment?: string): DatabaseTable { |
| 39 | const namespaceName = schema ?? this.name; |
| 40 | const table = new DatabaseTable(this.#platform, name, namespaceName); |
| 41 | table.nativeEnums = this.#nativeEnums; |
| 42 | table.comment = comment; |
| 43 | this.#tables.push(table); |
| 44 | |
| 45 | if (namespaceName != null) { |
| 46 | this.#namespaces.add(namespaceName); |
| 47 | } |
| 48 | |
| 49 | return table; |
| 50 | } |
| 51 | |
| 52 | getTables(): DatabaseTable[] { |
| 53 | return this.#tables; |
no test coverage detected