()
| 57 | } |
| 58 | |
| 59 | build(): Promise<TableData> { |
| 60 | const builder = new AutoBuilder(this.sequelize, this.options); |
| 61 | return builder.build().then(tableData => { |
| 62 | if (this.options.closeConnectionAutomatically) { |
| 63 | return this.sequelize.close().then(() => tableData); |
| 64 | } |
| 65 | return tableData; |
| 66 | }); |
| 67 | } |
| 68 | |
| 69 | relate(td: TableData): TableData { |
| 70 | const relater = new AutoRelater(this.options); |