hunk.code_window:                     return this.createDatabaseConnectionWithImport();
                   }
               } 
               else {
                   // browser
                   // fileNameOrLocalStorageOrData should be a local storage key
                   const localStorageContent = PlatformTools.getGlobalVariable().localStorage.getItem(fileNameOrLocalStorageOrData);
                   if (localStorageContent != null) {
                       // localStorage value exists.
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep
hunk.after_edit:                 // fileNameOrLocalStorageOrData should be a local storage / indexedDB key
                   let localStorageContent = null;
                   if (this.options.useLocalforage) {
                       if (window.localforage) {
                           localStorageContent = await window.localforage.getItem(fileNameOrLocalStorageOrData);
                       } else {
                           throw new Error(`localforage is not defined - please import localforage.js into your site`);
                       }
                   } else {
                       localStorageContent = PlatformTools.getGlobalVariable().localStorage.getItem(fileNameOrLocalStorageOrData);
                   }
  
hunk.file_path: src/driver/sqljs/SqljsDriver.ts
hunk.type: replace
file: import {Entity} from "../../../../../../src/decorator/entity/Entity";
  import {PrimaryGeneratedColumn} from "../../../../../../src/decorator/columns/PrimaryGeneratedColumn";
  import {Column} from "../../../../../../src/decorator/columns/Column";
  import {ManyToOne} from "../../../../../../src/decorator/relations/ManyToOne";
  import {Category} from "./Category";
  import {Image} from "./Image";
  import {OneToOne} from "../../../../../../src/decorator/relations/OneToOne";
  import {JoinColumn} from "../../../../../../src/decorator/relations/JoinColumn";
  
  @Entity()
  export class Post {
  
      @PrimaryGeneratedColumn()
      id: number;
  
      @Column()
      title: string;
  
      @ManyToOne(type => Category)
      category: Category;
  
      @OneToOne(type => Image, image => image.post)
      @JoinColumn()
      image: Image;
  
  }