import { type BaseConnectionOptions } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/connection/BaseConnectionOptions.ts";
BaseConnectionOptions is set of connection options shared by all database types.
Properties
Connection name. If connection name is not given then it will be called "default". Different connections must have different names.
Entities to be loaded for this connection. Accepts both entity classes and directories where from entities need to be loaded. Directories support glob patterns.
Subscribers to be loaded for this connection. Accepts both subscriber classes and directories where from subscribers need to be loaded. Directories support glob patterns.
Migrations to be loaded for this connection. Accepts both migration classes and directories where from migrations need to be loaded. Directories support glob patterns.
Migrations table name, in case of different name from "migrations". Accepts single string name.
Transaction mode for migrations to run in
Naming strategy to be used to name tables and columns in the database.
Logger instance used to log queries and events in the ORM.
Maximum number of milliseconds query should be executed before logger log a warning.
Indicates if database schema should be auto created on every application launch. Be careful with this option and don't use this in production - otherwise you can lose production data. This option is useful during debug and development. Alternative to it, you can use CLI and run schema:sync command.
Note that for MongoDB database it does not create schema, because MongoDB is schemaless. Instead, it syncs just by creating indices.
Indicates if migrations should be auto run on every application launch. Alternative to it, you can use CLI and run migrations:run command.
Drops the schema each time connection is being established. Be careful with this option and don't use this in production - otherwise you'll lose all production data. This option is useful during debug and development.
Prefix to use on all tables (collections) of this connection in the database.
Extra connection options to be passed to the underlying driver.
todo: deprecate this and move all database-specific types into hts own connection options object.