(tableNames: string[], assoc: string, lang?: string)
| 71 | return Promise.all(promises); |
| 72 | } |
| 73 | private createInitString(tableNames: string[], assoc: string, lang?: string) { |
| 74 | switch (lang) { |
| 75 | case 'ts': |
| 76 | return this.createTsInitString(tableNames, assoc); |
| 77 | case 'esm': |
| 78 | return this.createESMInitString(tableNames, assoc); |
| 79 | case 'es6': |
| 80 | return this.createES5InitString(tableNames, assoc, "const"); |
| 81 | default: |
| 82 | return this.createES5InitString(tableNames, assoc, "var"); |
| 83 | } |
| 84 | } |
| 85 | private createFile(table: string) { |
| 86 | // FIXME: schema is not used to write the file name and there could be collisions. For now it |
| 87 | // is up to the developer to pick the right schema, and potentially chose different output |
no test coverage detected