hunk.code_window:         else {
               const database: Uint8Array = this.databaseConnection.export();
               // convert Uint8Array to number array to improve local-storage storage
               const databaseArray = [].slice.call(database);
               PlatformTools.getGlobalVariable().localStorage.setItem(path, JSON.stringify(databaseArray));
           }
       }
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:             if (this.options.useLocalforage) {
                   if (window.localforage) {
                       await window.localforage.setItem(path, JSON.stringify(databaseArray));
                   } else {
                       throw new Error(`localforage is not defined - please import localforage.js into your site`);
                   }
               } else {
                   PlatformTools.getGlobalVariable().localStorage.setItem(path, JSON.stringify(databaseArray));
               }
  
hunk.file_path: src/driver/sqljs/SqljsDriver.ts
hunk.type: replace
file: import {Entity} from "../../../../../../src/decorator/entity/Entity";
  import {PrimaryColumn} from "../../../../../../src/decorator/columns/PrimaryColumn";
  import {Column} from "../../../../../../src/decorator/columns/Column";
  
  @Entity()
  export class PostWithoutTypes {
  
      @PrimaryColumn()
      id: number;
  
      @Column()
      name: string;
  
      @Column()
      bit: boolean;
  
      @Column()
      binary: Buffer;
  
      @Column()
      datetime: Date;
  
  }