hunk.code_window:     /**
        * Creates connection with the database.
        */
       protected async createDatabaseConnection() {
           const connection = await this.sqlite.createConnection(
               this.options.database,
  
hunk.labels: keep keep keep add keep keep
hunk.after_edit:         const databaseMode = this.options.mode || "no-encryption";
           const isDatabaseEncryted = databaseMode !== "no-encryption";
           const databaseVersion =
               typeof this.options.version === "undefined"
                   ? 1
                   : this.options.version;
  
hunk.file_path: src/driver/capacitor/CapacitorDriver.ts
hunk.type: add
file: import "reflect-metadata";
  import {plainToClass} from "class-transformer";
  
  import {Photo} from "./entity/Photo";
  import {User} from "./entity/User";
  
  describe("github issues > #4219 class-transformer-shim: support metadata reflection", () => {
  
      it("should create instances with the correct property types", () => {
          
          const photoLiteral = {
              url: "typeorm.io"
          };
  
          const user = plainToClass(User, {
              someDate: "Sat Jun 01 2019",
              oneToOnePhoto: photoLiteral,
              oneToManyPhotos: [photoLiteral],
              manyToOnePhoto: photoLiteral,
              manyToManyPhotos: [photoLiteral],
              treeChildrenPhotos: [photoLiteral],
              treeParentPhoto: photoLiteral
          });
  
          user.someDate.should.be.instanceof(Date);
          user.oneToOnePhoto.should.be.instanceof(Photo);
          user.oneToManyPhotos[0].should.be.instanceof(Photo);
          user.manyToOnePhoto.should.be.instanceof(Photo);
          user.manyToManyPhotos[0].should.be.instanceof(Photo);
          user.treeParentPhoto.should.be.instanceof(Photo);
  
      });
  
  });