hunk.code_window: import {createConnection} from "../../../src/index";
   import rimraf from "rimraf";
   import {dirname} from "path";
   import {Connection} from "../../../src/connection/Connection";
   describe("github issues > #799 sqlite: 'database' path should be created", () => {
       let connection: Connection;
       const path = `${__dirname}/tmp/sqlitedb.db`;
  
hunk.labels: keep keep keep add keep keep keep keep keep
hunk.after_edit: import {getTypeOrmConfig} from "../../utils/test-utils";
  
hunk.file_path: test/github-issues/799/issue-799.ts
hunk.type: add
file: import "reflect-metadata";
  import {Post} from "./entity/Post";
  import {Connection} from "../../../../../src/connection/Connection";
  import {closeTestingConnections, createTestingConnections, reloadTestingDatabases} from "../../../../utils/test-utils";
  
  // skipped because there is no way to get column collation from SQLite table schema
  describe.skip("database schema > column collation > sqlite", () => {
  
      let connections: Connection[];
      before(async () => {
          connections = await createTestingConnections({
              entities: [__dirname + "/entity/*{.js,.ts}"],
              enabledDrivers: ["sqlite", "better-sqlite3"],
          });
      });
      beforeEach(() => reloadTestingDatabases(connections));
      after(() => closeTestingConnections(connections));
  
      it("should correctly create column with collation option", () => Promise.all(connections.map(async connection => {
  
          const postRepository = connection.getRepository(Post);
          const queryRunner = connection.createQueryRunner();
          const table = await queryRunner.getTable("post");
          await queryRunner.release();
  
          const post = new Post();
          post.id = 1;
          post.name = "Post";
          await postRepository.save(post);
  
          table!.findColumnByName("name")!.collation!.should.be.equal("RTRIM");
  
      })));
  
  });
  