import { Connection } from './'; import { install } from 'typeorm-fixture-builder'; import { CreateConnectionOptions } from './create-connection-options'; interface SetupOptions { synchronize?: boolean; migrate?: boolean; } export declare class TestDatabaseConnection { private options; constructor(options?: CreateConnectionOptions); private testDatabaseName?; private masterConnection?; private testConnection?; private readonly defaultConnectionOptions; get connection(): Connection; private createConnection; private createTestDatabaseName; /** * Uses internal `DriverUtils` class to parse DSN URL to break it down into individual * connection pieces, like username and password. */ private parseDSNOptions; private createMasterConnectionOptions; private createTestConnectionOptions; /** * Creates a temporary test database and returns a connection to it. * * @param synchronize - synchronizes the database */ setup(options?: SetupOptions): Promise; /** * Cleans up and deletes the test database. */ teardown(): Promise; /** * Installs fixtures via [typeorm-fixture-builder](https://github.com/jeanfortheweb/typeorm-fixture-builder) * package. */ installFixtures(...fixtures: Parameters[1]): Promise; } export {};