hunk.code_window: * `database` - Database name (capacitor-sqlite will add the suffix `SQLite.db`)
   * `driver` - The capacitor-sqlite instance. For example, `new SQLiteConnection(CapacitorSQLite)`.
   * `journalMode` - The SQLite journal mode (optional)
   ## `cordova` connection options
  
hunk.labels: keep keep keep keep add keep keep keep
hunk.after_edit: * `mode` - Set the mode for database encryption: "no-encryption" | "encryption" | "secret" | "newsecret"
   * `version` - Database version
  
hunk.file_path: docs/connection-options.md
hunk.type: add
file: import "reflect-metadata";
  import {ConnectionOptions, createConnection} from "../../src/index";
  import {Post} from "./entity/Post";
  import {PostDetails} from "./entity/PostDetails";
  
  const options: ConnectionOptions = {
      type: "mssql",
      host: "192.168.1.10",
      username: "sa",
      password: "admin12345",
      database: "test",
      logging: ["query", "error"],
      synchronize: true,
      entities: [__dirname + "/entity/*"]
  };
  
  createConnection(options).then(connection => {
      let details1 = new PostDetails();
      details1.comment = "People";
  
      let details2 = new PostDetails();
      details2.comment = "Human";
  
      let post = new Post();
      post.text = "Hello how are you?";
      post.title = "hello";
      post.details = [details1, details2];
  
      let postRepository = connection.getRepository(Post);
  
      postRepository
          .save(post)
          .then(post => console.log("Post has been saved"))
          .catch(error => console.log("Cannot save. Error: ", error));
  
  }, error => console.log("Cannot connect: ", error));
  