()
| 25 | columns = new Map<string, Array<string>>() |
| 26 | |
| 27 | snapshot() { |
| 28 | return { |
| 29 | tables: new Map(Array.from(this.tables, ([table, rows]) => [table, rows.map((row) => ({ ...row }))])), |
| 30 | columns: new Map(Array.from(this.columns, ([table, columns]) => [table, [...columns]])) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | restore(snapshot: ReturnType<FakeSqlStorage["snapshot"]>) { |
| 35 | this.tables = snapshot.tables |