mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
refactored driver stuff
This commit is contained in:
parent
10b5fb2a79
commit
87c94ee833
@ -36,6 +36,7 @@ Now naming strategy should be registered by passing naming strategy instance dir
|
||||
* env variable names for connection were changed (`TYPEORM_DRIVER_TYPE` has been renamed to `TYPEORM_CONNECTION`, some other renaming).
|
||||
More env variable names you can find in `ConnectionOptionsEnvReader` class.
|
||||
* some api changes in `ConnectionManager` and `createConnection` / `createConnections` methods of typeorm main entrypoint
|
||||
* `usePool` option has been removed from connection options. Now connections are working only with connection pooling
|
||||
|
||||
### OTHER API CHANGES
|
||||
|
||||
|
||||
@ -6,12 +6,12 @@ export interface DatabaseConnection {
|
||||
/**
|
||||
* Id of the connection.
|
||||
*/
|
||||
readonly id: number;
|
||||
id: number;
|
||||
|
||||
/**
|
||||
* Native driver's connection object.
|
||||
*/
|
||||
readonly connection: any;
|
||||
connection: any;
|
||||
|
||||
/**
|
||||
* Connection's transaction instance.
|
||||
|
||||
@ -57,15 +57,6 @@ export interface DriverOptions {
|
||||
*/
|
||||
storage?: string;
|
||||
|
||||
/**
|
||||
* Indicates if connection pooling should be used or not.
|
||||
* Be default it is enabled if its supported by a platform.
|
||||
* Set to false to disable it.
|
||||
*
|
||||
* @todo: rename to disablePool? What about mongodb pool?
|
||||
*/
|
||||
usePool?: boolean;
|
||||
|
||||
/**
|
||||
* Extra connection options to be passed to the underlying driver.
|
||||
*/
|
||||
|
||||
@ -3,6 +3,8 @@ import {PlatformTools} from "../platform/PlatformTools";
|
||||
|
||||
/**
|
||||
* Performs logging of the events in TypeORM.
|
||||
*
|
||||
* todo: implement logging of too long running queries (there should be option to control max query execution time)
|
||||
*/
|
||||
export class Logger {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user