refactored driver stuff

This commit is contained in:
Umed Khudoiberdiev 2017-06-10 00:39:26 +05:00
parent 10b5fb2a79
commit 87c94ee833
4 changed files with 5 additions and 11 deletions

View File

@ -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

View File

@ -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.

View File

@ -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.
*/

View File

@ -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 {