* The shortest name is stripped of the default namespace. All other namespaced elements are returned as full-qualified names.
(skipDefaultSchema = true)
| 815 | * The shortest name is stripped of the default namespace. All other namespaced elements are returned as full-qualified names. |
| 816 | */ |
| 817 | getShortestName(skipDefaultSchema = true): string { |
| 818 | const defaultSchema = this.#platform.getDefaultSchemaName(); |
| 819 | |
| 820 | if ( |
| 821 | !this.schema || |
| 822 | this.name.startsWith(defaultSchema + '.') || |
| 823 | (this.schema === defaultSchema && skipDefaultSchema) |
| 824 | ) { |
| 825 | return this.name; |
| 826 | } |
| 827 | |
| 828 | return `${this.schema}.${this.name}`; |
| 829 | } |
| 830 | |
| 831 | getForeignKeys(): Dictionary<ForeignKey> { |
| 832 | return this.#foreignKeys; |
no test coverage detected