typeorm 0.2.42-dev.a855b90 → 0.2.42-dev.d10484e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +38 -0
  2. package/browser/common/RelationType.d.ts +14 -0
  3. package/browser/common/RelationType.js +3 -0
  4. package/browser/common/RelationType.js.map +1 -0
  5. package/browser/connection/Connection.d.ts +1 -1
  6. package/browser/connection/Connection.js +45 -30
  7. package/browser/connection/Connection.js.map +1 -1
  8. package/browser/connection/ConnectionMetadataBuilder.d.ts +3 -3
  9. package/browser/connection/ConnectionMetadataBuilder.js +54 -22
  10. package/browser/connection/ConnectionMetadataBuilder.js.map +1 -1
  11. package/browser/connection/ConnectionOptionsReader.js +33 -28
  12. package/browser/connection/ConnectionOptionsReader.js.map +1 -1
  13. package/browser/find-options/operator/Like.d.ts +1 -1
  14. package/browser/find-options/operator/Like.js +1 -1
  15. package/browser/find-options/operator/Like.js.map +1 -1
  16. package/browser/globals.js +34 -7
  17. package/browser/globals.js.map +1 -1
  18. package/browser/index.d.ts +1 -0
  19. package/browser/index.js +1 -0
  20. package/browser/index.js.map +1 -1
  21. package/browser/migration/MigrationExecutor.js +1 -1
  22. package/browser/migration/MigrationExecutor.js.map +1 -1
  23. package/browser/util/DirectoryExportedClassesLoader.d.ts +1 -1
  24. package/browser/util/DirectoryExportedClassesLoader.js +55 -31
  25. package/browser/util/DirectoryExportedClassesLoader.js.map +1 -1
  26. package/browser/util/ImportUtils.d.ts +1 -0
  27. package/browser/util/ImportUtils.js +90 -0
  28. package/browser/util/ImportUtils.js.map +1 -0
  29. package/commands/InitCommand.d.ts +9 -7
  30. package/commands/InitCommand.js +72 -43
  31. package/commands/InitCommand.js.map +1 -1
  32. package/common/RelationType.d.ts +14 -0
  33. package/common/RelationType.js +4 -0
  34. package/common/RelationType.js.map +1 -0
  35. package/connection/Connection.d.ts +1 -1
  36. package/connection/Connection.js +45 -30
  37. package/connection/Connection.js.map +1 -1
  38. package/connection/ConnectionMetadataBuilder.d.ts +3 -3
  39. package/connection/ConnectionMetadataBuilder.js +53 -21
  40. package/connection/ConnectionMetadataBuilder.js.map +1 -1
  41. package/connection/ConnectionOptionsReader.js +32 -27
  42. package/connection/ConnectionOptionsReader.js.map +1 -1
  43. package/find-options/operator/Like.d.ts +1 -1
  44. package/find-options/operator/Like.js +1 -1
  45. package/find-options/operator/Like.js.map +1 -1
  46. package/globals.js +33 -6
  47. package/globals.js.map +1 -1
  48. package/index.d.ts +1 -0
  49. package/index.js +1 -0
  50. package/index.js.map +1 -1
  51. package/index.mjs +352 -0
  52. package/migration/MigrationExecutor.js +1 -1
  53. package/migration/MigrationExecutor.js.map +1 -1
  54. package/package.json +1 -1
  55. package/util/DirectoryExportedClassesLoader.d.ts +1 -1
  56. package/util/DirectoryExportedClassesLoader.js +54 -31
  57. package/util/DirectoryExportedClassesLoader.js.map +1 -1
  58. package/util/ImportUtils.d.ts +1 -0
  59. package/util/ImportUtils.js +94 -0
  60. package/util/ImportUtils.js.map +1 -0
package/globals.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/globals.ts"],"names":[],"mappings":";;;;AAAA,2EAA0E;AAC1E,0DAAyD;AAEzD,gFAA+E;AAC/E,oEAAmE;AACnE,yCAA+C;AAY/C;;GAEG;AACH,SAAgB,sBAAsB;IAClC,8FAA8F;IAC9F,qGAAqG;IACrG,mGAAmG;IACnG,8EAA8E;IAC9E,6FAA6F;IAC7F,8FAA8F;IAC9F,iFAAiF;IACjF,4FAA4F;IAC5F,IAAM,WAAW,GAAG,6BAAa,CAAC,iBAAiB,EAAE,CAAC;IACtD,IAAI,CAAC,WAAW,CAAC,0BAA0B;QACvC,WAAW,CAAC,0BAA0B,GAAG,IAAI,yCAAmB,EAAE,CAAC;IAEvE,OAAO,WAAW,CAAC,0BAA0B,CAAC;AAClD,CAAC;AAdD,wDAcC;AAED;;GAEG;AACH,SAAsB,oBAAoB,CAAC,cAA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AAC5F,CAAC;AAFD,kDAEC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAAS,WAAiC,EAAE,cAAkC;IAAlC,+BAAA,EAAA,0BAAkC;IAC5G,OAAO,oBAAoB,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,kBAAkB,CAAS,WAAW,CAAC,CAAC;AAC9F,CAAC;AAFD,gDAEC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAAS,WAAkC,EAAE,KAAc,EAAE,cAAkC;IAAlC,+BAAA,EAAA,0BAAkC;IAC7H,IAAI,WAAW,EAAE;QACb,OAAO,aAAa,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;KAC/E;IAED,OAAO,aAAa,CAAC,cAAc,CAAC,CAAC,kBAAkB,EAAE,CAAC;AAC9D,CAAC;AAND,gDAMC","file":"globals.js","sourcesContent":["import { MetadataArgsStorage } from \"./metadata-args/MetadataArgsStorage\";\nimport { PlatformTools } from \"./platform/PlatformTools\";\nimport { ConnectionOptions } from \"./connection/ConnectionOptions\";\nimport { ConnectionOptionsReader } from \"./connection/ConnectionOptionsReader\";\nimport { ConnectionManager } from \"./connection/ConnectionManager\";\nimport { getFromContainer } from \"./container\";\nimport { Connection } from \"./connection/Connection\";\nimport { EntityManager } from \"./entity-manager/EntityManager\";\nimport { MongoEntityManager } from \"./entity-manager/MongoEntityManager\";\nimport { SqljsEntityManager } from \"./entity-manager/SqljsEntityManager\";\nimport { EntityTarget } from \"./common/EntityTarget\";\nimport { Repository } from \"./repository/Repository\";\nimport { TreeRepository } from \"./repository/TreeRepository\";\nimport { ObjectType } from \"./common/ObjectType\";\nimport { MongoRepository } from \"./repository/MongoRepository\";\nimport { SelectQueryBuilder } from \"./query-builder/SelectQueryBuilder\";\n\n/**\n * Gets metadata args storage.\n */\nexport function getMetadataArgsStorage(): MetadataArgsStorage {\n // we should store metadata storage in a global variable otherwise it brings too much problems\n // one of the problem is that if any entity (or any other) will be imported before consumer will call\n // useContainer method with his own container implementation, that entity will be registered in the\n // old old container (default one post probably) and consumer will his entity.\n // calling useContainer before he imports any entity (or any other) is not always convenient.\n // another reason is that when we run migrations typeorm is being called from a global package\n // and it may load entities which register decorators in typeorm of local package\n // this leads to impossibility of usage of entities in migrations and cli related operations\n const globalScope = PlatformTools.getGlobalVariable();\n if (!globalScope.typeormMetadataArgsStorage)\n globalScope.typeormMetadataArgsStorage = new MetadataArgsStorage();\n\n return globalScope.typeormMetadataArgsStorage;\n}\n\n/**\n * Reads connection options stored in ormconfig configuration file.\n */\nexport async function getConnectionOptions(connectionName: string = \"default\"): Promise<ConnectionOptions> {\n return new ConnectionOptionsReader().get(connectionName);\n}\n\n/**\n * Gets a ConnectionManager which creates connections.\n */\nexport function getConnectionManager(): ConnectionManager {\n return getFromContainer(ConnectionManager);\n}\n\n/**\n * Creates a new connection and registers it in the manager.\n * Only one connection from ormconfig will be created (name \"default\" or connection without name).\n */\nexport async function createConnection(): Promise<Connection>;\n\n/**\n * Creates a new connection from the ormconfig file with a given name.\n */\nexport async function createConnection(name: string): Promise<Connection>;\n\n/**\n * Creates a new connection and registers it in the manager.\n */\nexport async function createConnection(options: ConnectionOptions): Promise<Connection>;\n\n/**\n * Creates a new connection and registers it in the manager.\n *\n * If connection options were not specified, then it will try to create connection automatically,\n * based on content of ormconfig (json/js/yml/xml/env) file or environment variables.\n * Only one connection from ormconfig will be created (name \"default\" or connection without name).\n */\nexport async function createConnection(optionsOrName?: any): Promise<Connection> {\n const connectionName = typeof optionsOrName === \"string\" ? optionsOrName : \"default\";\n const options = optionsOrName instanceof Object ? optionsOrName : await getConnectionOptions(connectionName);\n return getConnectionManager().create(options).connect();\n}\n\n/**\n * Creates new connections and registers them in the manager.\n *\n * If connection options were not specified, then it will try to create connection automatically,\n * based on content of ormconfig (json/js/yml/xml/env) file or environment variables.\n * All connections from the ormconfig will be created.\n */\nexport async function createConnections(options?: ConnectionOptions[]): Promise<Connection[]> {\n if (!options)\n options = await new ConnectionOptionsReader().all();\n const connections = options.map(options => getConnectionManager().create(options));\n return Promise.all(connections.map(connection => connection.connect()));\n}\n\n/**\n * Gets connection from the connection manager.\n * If connection name wasn't specified, then \"default\" connection will be retrieved.\n */\nexport function getConnection(connectionName: string = \"default\"): Connection {\n return getConnectionManager().get(connectionName);\n}\n\n/**\n * Gets entity manager from the connection.\n * If connection name wasn't specified, then \"default\" connection will be retrieved.\n */\nexport function getManager(connectionName: string = \"default\"): EntityManager {\n return getConnectionManager().get(connectionName).manager;\n}\n\n/**\n * Gets MongoDB entity manager from the connection.\n * If connection name wasn't specified, then \"default\" connection will be retrieved.\n */\nexport function getMongoManager(connectionName: string = \"default\"): MongoEntityManager {\n return getConnectionManager().get(connectionName).manager as MongoEntityManager;\n}\n\n/**\n * Gets Sqljs entity manager from connection name.\n * \"default\" connection is used, when no name is specified.\n * Only works when Sqljs driver is used.\n */\nexport function getSqljsManager(connectionName: string = \"default\"): SqljsEntityManager {\n return getConnectionManager().get(connectionName).manager as SqljsEntityManager;\n}\n\n/**\n * Gets repository for the given entity class.\n */\nexport function getRepository<Entity>(entityClass: EntityTarget<Entity>, connectionName: string = \"default\"): Repository<Entity> {\n return getConnectionManager().get(connectionName).getRepository<Entity>(entityClass);\n}\n\n/**\n * Gets tree repository for the given entity class.\n */\nexport function getTreeRepository<Entity>(entityClass: EntityTarget<Entity>, connectionName: string = \"default\"): TreeRepository<Entity> {\n return getConnectionManager().get(connectionName).getTreeRepository<Entity>(entityClass);\n}\n\n/**\n * Gets tree repository for the given entity class.\n */\nexport function getCustomRepository<T>(customRepository: ObjectType<T>, connectionName: string = \"default\"): T {\n return getConnectionManager().get(connectionName).getCustomRepository(customRepository);\n}\n\n/**\n * Gets mongodb repository for the given entity class or name.\n */\nexport function getMongoRepository<Entity>(entityClass: EntityTarget<Entity>, connectionName: string = \"default\"): MongoRepository<Entity> {\n return getConnectionManager().get(connectionName).getMongoRepository<Entity>(entityClass);\n}\n\n/**\n * Creates a new query builder.\n */\nexport function createQueryBuilder<Entity>(entityClass?: EntityTarget<Entity>, alias?: string, connectionName: string = \"default\"): SelectQueryBuilder<Entity> {\n if (entityClass) {\n return getRepository(entityClass, connectionName).createQueryBuilder(alias);\n }\n\n return getConnection(connectionName).createQueryBuilder();\n}\n"],"sourceRoot":"."}
1
+ {"version":3,"sources":["../../src/globals.ts"],"names":[],"mappings":";;;;AAAA,2EAA0E;AAC1E,0DAAyD;AAEzD,gFAA+E;AAC/E,oEAAmE;AACnE,yCAA+C;AAY/C;;GAEG;AACH,SAAgB,sBAAsB;IAClC,8FAA8F;IAC9F,qGAAqG;IACrG,mGAAmG;IACnG,8EAA8E;IAC9E,6FAA6F;IAC7F,8FAA8F;IAC9F,iFAAiF;IACjF,4FAA4F;IAC5F,IAAM,WAAW,GAAG,6BAAa,CAAC,iBAAiB,EAAE,CAAC;IACtD,IAAI,CAAC,WAAW,CAAC,0BAA0B;QACvC,WAAW,CAAC,0BAA0B,GAAG,IAAI,yCAAmB,EAAE,CAAC;IAEvE,OAAO,WAAW,CAAC,0BAA0B,CAAC;AAClD,CAAC;AAdD,wDAcC;AAED;;GAEG;AACH,SAAsB,oBAAoB,CAAC,cAAkC;IAAlC,+BAAA,EAAA,0BAAkC;;;YACzE,sBAAO,IAAI,iDAAuB,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,EAAC;;;CAC5D;AAFD,oDAEC;AAED;;GAEG;AACH,SAAgB,oBAAoB;IAChC,OAAO,IAAA,4BAAgB,EAAC,qCAAiB,CAAC,CAAC;AAC/C,CAAC;AAFD,oDAEC;AAkBD;;;;;;GAMG;AACH,SAAsB,gBAAgB,CAAC,aAAmB;;;;;;oBAChD,cAAc,GAAG,OAAO,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;yBACrE,CAAA,aAAa,YAAY,MAAM,CAAA,EAA/B,wBAA+B;oBAAG,KAAA,aAAa,CAAA;;wBAAG,qBAAM,o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aAAa,CAAC,cAAc,CAAC,CAAC,kBAAkB,EAAE,CAAC;AAC9D,CAAC;AAND,gDAMC","file":"globals.js","sourcesContent":["import { MetadataArgsStorage } from \"./metadata-args/MetadataArgsStorage\";\nimport { PlatformTools } from \"./platform/PlatformTools\";\nimport { ConnectionOptions } from \"./connection/ConnectionOptions\";\nimport { ConnectionOptionsReader } from \"./connection/ConnectionOptionsReader\";\nimport { ConnectionManager } from \"./connection/ConnectionManager\";\nimport { getFromContainer } from \"./container\";\nimport { Connection } from \"./connection/Connection\";\nimport { EntityManager } from \"./entity-manager/EntityManager\";\nimport { MongoEntityManager } from \"./entity-manager/MongoEntityManager\";\nimport { SqljsEntityManager } from \"./entity-manager/SqljsEntityManager\";\nimport { EntityTarget } from \"./common/EntityTarget\";\nimport { Repository } from \"./repository/Repository\";\nimport { TreeRepository } from \"./repository/TreeRepository\";\nimport { ObjectType } from \"./common/ObjectType\";\nimport { MongoRepository } from \"./repository/MongoRepository\";\nimport { SelectQueryBuilder } from \"./query-builder/SelectQueryBuilder\";\n\n/**\n * Gets metadata args storage.\n */\nexport function getMetadataArgsStorage(): MetadataArgsStorage {\n // we should store metadata storage in a global variable otherwise it brings too much problems\n // one of the problem is that if any entity (or any other) will be imported before consumer will call\n // useContainer method with his own container implementation, that entity will be registered in the\n // old old container (default one post probably) and consumer will his entity.\n // calling useContainer before he imports any entity (or any other) is not always convenient.\n // another reason is that when we run migrations typeorm is being called from a global package\n // and it may load entities which register decorators in typeorm of local package\n // this leads to impossibility of usage of entities in migrations and cli related operations\n const globalScope = PlatformTools.getGlobalVariable();\n if (!globalScope.typeormMetadataArgsStorage)\n globalScope.typeormMetadataArgsStorage = new MetadataArgsStorage();\n\n return globalScope.typeormMetadataArgsStorage;\n}\n\n/**\n * Reads connection options stored in ormconfig configuration file.\n */\nexport async function getConnectionOptions(connectionName: string = \"default\"): Promise<ConnectionOptions> {\n return new ConnectionOptionsReader().get(connectionName);\n}\n\n/**\n * Gets a ConnectionManager which creates connections.\n */\nexport function getConnectionManager(): ConnectionManager {\n return getFromContainer(ConnectionManager);\n}\n\n/**\n * Creates a new connection and registers it in the manager.\n * Only one connection from ormconfig will be created (name \"default\" or connection without name).\n */\nexport async function createConnection(): Promise<Connection>;\n\n/**\n * Creates a new connection from the ormconfig file with a given name.\n */\nexport async function createConnection(name: string): Promise<Connection>;\n\n/**\n * Creates a new connection and registers it in the manager.\n */\nexport async function createConnection(options: ConnectionOptions): Promise<Connection>;\n\n/**\n * Creates a new connection and registers it in the manager.\n *\n * If connection options were not specified, then it will try to create connection automatically,\n * based on content of ormconfig (json/js/yml/xml/env) file or environment variables.\n * Only one connection from ormconfig will be created (name \"default\" or connection without name).\n */\nexport async function createConnection(optionsOrName?: any): Promise<Connection> {\n const connectionName = typeof optionsOrName === \"string\" ? optionsOrName : \"default\";\n const options = optionsOrName instanceof Object ? optionsOrName : await getConnectionOptions(connectionName);\n return getConnectionManager().create(options).connect();\n}\n\n/**\n * Creates new connections and registers them in the manager.\n *\n * If connection options were not specified, then it will try to create connection automatically,\n * based on content of ormconfig (json/js/yml/xml/env) file or environment variables.\n * All connections from the ormconfig will be created.\n */\nexport async function createConnections(options?: ConnectionOptions[]): Promise<Connection[]> {\n if (!options)\n options = await new ConnectionOptionsReader().all();\n const connections = options.map(options => getConnectionManager().create(options));\n // Do not use Promise.all or test 8522 will produce a dangling sqlite connection\n for (const connection of connections) {\n await connection.connect()\n }\n return connections;\n}\n\n/**\n * Gets connection from the connection manager.\n * If connection name wasn't specified, then \"default\" connection will be retrieved.\n */\nexport function getConnection(connectionName: string = \"default\"): Connection {\n return getConnectionManager().get(connectionName);\n}\n\n/**\n * Gets entity manager from the connection.\n * If connection name wasn't specified, then \"default\" connection will be retrieved.\n */\nexport function getManager(connectionName: string = \"default\"): EntityManager {\n return getConnectionManager().get(connectionName).manager;\n}\n\n/**\n * Gets MongoDB entity manager from the connection.\n * If connection name wasn't specified, then \"default\" connection will be retrieved.\n */\nexport function getMongoManager(connectionName: string = \"default\"): MongoEntityManager {\n return getConnectionManager().get(connectionName).manager as MongoEntityManager;\n}\n\n/**\n * Gets Sqljs entity manager from connection name.\n * \"default\" connection is used, when no name is specified.\n * Only works when Sqljs driver is used.\n */\nexport function getSqljsManager(connectionName: string = \"default\"): SqljsEntityManager {\n return getConnectionManager().get(connectionName).manager as SqljsEntityManager;\n}\n\n/**\n * Gets repository for the given entity class.\n */\nexport function getRepository<Entity>(entityClass: EntityTarget<Entity>, connectionName: string = \"default\"): Repository<Entity> {\n return getConnectionManager().get(connectionName).getRepository<Entity>(entityClass);\n}\n\n/**\n * Gets tree repository for the given entity class.\n */\nexport function getTreeRepository<Entity>(entityClass: EntityTarget<Entity>, connectionName: string = \"default\"): TreeRepository<Entity> {\n return getConnectionManager().get(connectionName).getTreeRepository<Entity>(entityClass);\n}\n\n/**\n * Gets tree repository for the given entity class.\n */\nexport function getCustomRepository<T>(customRepository: ObjectType<T>, connectionName: string = \"default\"): T {\n return getConnectionManager().get(connectionName).getCustomRepository(customRepository);\n}\n\n/**\n * Gets mongodb repository for the given entity class or name.\n */\nexport function getMongoRepository<Entity>(entityClass: EntityTarget<Entity>, connectionName: string = \"default\"): MongoRepository<Entity> {\n return getConnectionManager().get(connectionName).getMongoRepository<Entity>(entityClass);\n}\n\n/**\n * Creates a new query builder.\n */\nexport function createQueryBuilder<Entity>(entityClass?: EntityTarget<Entity>, alias?: string, connectionName: string = \"default\"): SelectQueryBuilder<Entity> {\n if (entityClass) {\n return getRepository(entityClass, connectionName).createQueryBuilder(alias);\n }\n\n return getConnection(connectionName).createQueryBuilder();\n}\n"],"sourceRoot":"."}
package/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from "./common/EntityTarget";
7
7
  export * from "./common/ObjectType";
8
8
  export * from "./common/ObjectLiteral";
9
9
  export * from "./common/DeepPartial";
10
+ export * from "./common/RelationType";
10
11
  export * from "./error";
11
12
  export * from "./decorator/columns/Column";
12
13
  export * from "./decorator/columns/CreateDateColumn";
package/index.js CHANGED
@@ -14,6 +14,7 @@ require("reflect-metadata");
14
14
  (0, tslib_1.__exportStar)(require("./common/ObjectType"), exports);
15
15
  (0, tslib_1.__exportStar)(require("./common/ObjectLiteral"), exports);
16
16
  (0, tslib_1.__exportStar)(require("./common/DeepPartial"), exports);
17
+ (0, tslib_1.__exportStar)(require("./common/RelationType"), exports);
17
18
  (0, tslib_1.__exportStar)(require("./error"), exports);
18
19
  (0, tslib_1.__exportStar)(require("./decorator/columns/Column"), exports);
19
20
  (0, tslib_1.__exportStar)(require("./decorator/columns/CreateDateColumn"), exports);
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA;GACG;AACH,4BAA0B;AAE1B,4EAA4E;AAC5E,wBAAwB;AACxB,4EAA4E;AAE5E,yDAA0B;AAC1B,2DAA4B;AAC5B,qEAAsC;AACtC,mEAAoC;AACpC,sEAAuC;AACvC,oEAAqC;AACrC,uDAAwB;AACxB,0EAA2C;AAC3C,oFAAqD;AACrD,oFAAqD;AACrD,0FAA2D;AAC3D,iFAAkD;AAClD,oFAAqD;AACrD,iFAAkD;AAClD,8EAA+C;AAC/C,kFAAmD;AACnD,iFAAkD;AAClD,+EAAgD;AAChD,iFAAkD;AAClD,iFAAkD;AAClD,kFAAmD;AACnD,kFAAmD;AACnD,kFAAmD;AACnD,qFAAsD;AACtD,iFAAkD;AAClD,gFAAiD;AACjD,qFAAsD;AACtD,oFAAqD;AACrD,mFAAoD;AACpD,iFAAkD;AAClD,oFAAqD;AACrD,gFAAiD;AACjD,+EAAgD;AAChD,gFAAiD;AACjD,+EAAgD;AAChD,+EAAgD;AAChD,8EAA+C;AAC/C,mFAAoD;AACpD,gFAAiD;AACjD,yEAA0C;AAC1C,8EAA+C;AAC/C,mFAAoD;AACpD,kFAAmD;AACnD,mFAAoD;AACpD,0FAA2D;AAC3D,6FAA8D;AAC9D,gFAAiD;AACjD,2EAA4C;AAC5C,6EAA8C;AA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AAA9D,wHAAA,kBAAkB,OAAA;AAC1B,6EAA0E;AAAlE,4HAAA,oBAAoB,OAAA;AAC5B,qDAAkD;AAA1C,oGAAA,QAAQ,OAAA;AAChB,2DAAwD;AAAhD,0GAAA,WAAW,OAAA;AAGnB,oEAAiE;AAAzD,4GAAA,YAAY,OAAA;AACpB,oEAAiE;AAAzD,4GAAA,YAAY,OAAA;AACpB,oEAAiE;AAAzD,4GAAA,YAAY,OAAA;AACpB,0DAAuD;AAA/C,0GAAA,WAAW,OAAA;AAEnB,0EAAuE;AAA/D,wHAAA,kBAAkB,OAAA;AAC1B,mDAAgD;AAAxC,sGAAA,SAAS,OAAA;AACjB,mEAAgE;AAAxD,sHAAA,iBAAiB,OAAA;AAEzB,iFAA8E;AAAtE,8HAAA,qBAAqB,OAAA;AAY7B,6DAA0D;AAAlD,4GAAA,YAAY,OAAA","file":"index.js","sourcesContent":["/*!\n */\nimport \"reflect-metadata\";\n\n// -------------------------------------------------------------------------\n// Commonly Used exports\n// -------------------------------------------------------------------------\n\nexport * from \"./globals\";\nexport * from \"./container\";\nexport * from \"./common/EntityTarget\";\nexport * from \"./common/ObjectType\";\nexport * from \"./common/ObjectLiteral\";\nexport * from \"./common/DeepPartial\";\nexport * from \"./error\";\nexport * from \"./decorator/columns/Column\";\nexport * from \"./decorator/columns/CreateDateColumn\";\nexport * from \"./decorator/columns/DeleteDateColumn\";\nexport * from \"./decorator/columns/PrimaryGeneratedColumn\";\nexport * from \"./decorator/columns/PrimaryColumn\";\nexport * from \"./decorator/columns/UpdateDateColumn\";\nexport * from \"./decorator/columns/VersionColumn\";\nexport * from \"./decorator/columns/ViewColumn\";\nexport * from \"./decorator/columns/ObjectIdColumn\";\nexport * from \"./decorator/listeners/AfterInsert\";\nexport * from \"./decorator/listeners/AfterLoad\";\nexport * from \"./decorator/listeners/AfterRemove\";\nexport * from \"./decorator/listeners/AfterUpdate\";\nexport * from \"./decorator/listeners/BeforeInsert\";\nexport * from \"./decorator/listeners/BeforeRemove\";\nexport * from \"./decorator/listeners/BeforeUpdate\";\nexport * from \"./decorator/listeners/EventSubscriber\";\nexport * from \"./decorator/options/ColumnOptions\";\nexport * from \"./decorator/options/IndexOptions\";\nexport * from \"./decorator/options/JoinColumnOptions\";\nexport * from \"./decorator/options/JoinTableOptions\";\nexport * from \"./decorator/options/RelationOptions\";\nexport * from \"./decorator/options/EntityOptions\";\nexport * from \"./decorator/options/ValueTransformer\";\nexport * from \"./decorator/relations/JoinColumn\";\nexport * from \"./decorator/relations/JoinTable\";\nexport * from \"./decorator/relations/ManyToMany\";\nexport * from \"./decorator/relations/ManyToOne\";\nexport * from \"./decorator/relations/OneToMany\";\nexport * from \"./decorator/relations/OneToOne\";\nexport * from \"./decorator/relations/RelationCount\";\nexport * from \"./decorator/relations/RelationId\";\nexport * from \"./decorator/entity/Entity\";\nexport * from \"./decorator/entity/ChildEntity\";\nexport * from \"./decorator/entity/TableInheritance\";\nexport * from \"./decorator/entity-view/ViewEntity\";\nexport * from \"./decorator/transaction/Transaction\";\nexport * from \"./decorator/transaction/TransactionManager\";\nexport * from \"./decorator/transaction/TransactionRepository\";\nexport * from \"./decorator/tree/TreeLevelColumn\";\nexport * from \"./decorator/tree/TreeParent\";\nexport * from \"./decorator/tree/TreeChildren\";\nexport * from \"./decorator/tree/Tree\";\nexport * from \"./decorator/Index\";\nexport * from \"./decorator/Unique\";\nexport * from \"./decorator/Check\";\nexport * from \"./decorator/Exclusion\";\nexport * from \"./decorator/Generated\";\nexport * from \"./decorator/EntityRepository\";\nexport * from \"./find-options/operator/Any\";\nexport * from \"./find-options/operator/Between\";\nexport * from \"./find-options/operator/Equal\";\nexport * from \"./find-options/operator/In\";\nexport * from \"./find-options/operator/IsNull\";\nexport * from \"./find-options/operator/LessThan\";\nexport * from \"./find-options/operator/LessThanOrEqual\";\nexport * from \"./find-options/operator/ILike\";\nexport * from \"./find-options/operator/Like\";\nexport * from \"./find-options/operator/MoreThan\";\nexport * from \"./find-options/operator/MoreThanOrEqual\";\nexport * from \"./find-options/operator/Not\";\nexport * from \"./find-options/operator/Raw\";\nexport * from \"./find-options/FindConditions\";\nexport * from \"./find-options/FindManyOptions\";\nexport * from \"./find-options/FindOneOptions\";\nexport * from \"./find-options/FindOperator\";\nexport * from \"./find-options/FindOperatorType\";\nexport * from \"./find-options/JoinOptions\";\nexport * from \"./find-options/OrderByCondition\";\nexport * from \"./find-options/FindOptionsUtils\";\nexport * from \"./logger/Logger\";\nexport * from \"./logger/LoggerOptions\";\nexport * from \"./logger/AdvancedConsoleLogger\";\nexport * from \"./logger/SimpleConsoleLogger\";\nexport * from \"./logger/FileLogger\";\nexport * from \"./metadata/EntityMetadata\";\nexport * from \"./entity-manager/EntityManager\";\nexport * from \"./repository/AbstractRepository\";\nexport * from \"./repository/Repository\";\nexport * from \"./repository/BaseEntity\";\nexport * from \"./repository/TreeRepository\";\nexport * from \"./repository/MongoRepository\";\nexport * from \"./repository/RemoveOptions\";\nexport * from \"./repository/SaveOptions\";\nexport * from \"./schema-builder/table/TableCheck\";\nexport * from \"./schema-builder/table/TableColumn\";\nexport * from \"./schema-builder/table/TableExclusion\";\nexport * from \"./schema-builder/table/TableForeignKey\";\nexport * from \"./schema-builder/table/TableIndex\";\nexport * from \"./schema-builder/table/TableUnique\";\nexport * from \"./schema-builder/table/Table\";\nexport * from \"./schema-builder/options/TableCheckOptions\";\nexport * from \"./schema-builder/options/TableColumnOptions\";\nexport * from \"./schema-builder/options/TableExclusionOptions\";\nexport * from \"./schema-builder/options/TableForeignKeyOptions\";\nexport * from \"./schema-builder/options/TableIndexOptions\";\nexport * from \"./schema-builder/options/TableOptions\";\nexport * from \"./schema-builder/options/TableUniqueOptions\";\nexport * from \"./schema-builder/options/ViewOptions\";\nexport * from \"./driver/mongodb/typings\";\nexport * from \"./driver/types/DatabaseType\";\nexport * from \"./driver/types/ReplicationMode\";\nexport * from \"./driver/sqlserver/MssqlParameter\";\n\nexport {ConnectionOptionsReader} from \"./connection/ConnectionOptionsReader\";\nexport {Connection} from \"./connection/Connection\";\nexport {ConnectionManager} from \"./connection/ConnectionManager\";\nexport {ConnectionOptions} from \"./connection/ConnectionOptions\";\nexport {Driver} from \"./driver/Driver\";\nexport {QueryBuilder} from \"./query-builder/QueryBuilder\";\nexport {SelectQueryBuilder} from \"./query-builder/SelectQueryBuilder\";\nexport {DeleteQueryBuilder} from \"./query-builder/DeleteQueryBuilder\";\nexport {InsertQueryBuilder} from \"./query-builder/InsertQueryBuilder\";\nexport {UpdateQueryBuilder} from \"./query-builder/UpdateQueryBuilder\";\nexport {RelationQueryBuilder} from \"./query-builder/RelationQueryBuilder\";\nexport {Brackets} from \"./query-builder/Brackets\";\nexport {NotBrackets} from \"./query-builder/NotBrackets\";\nexport {WhereExpressionBuilder} from \"./query-builder/WhereExpressionBuilder\";\nexport {WhereExpression} from \"./query-builder/WhereExpressionBuilder\";\nexport {InsertResult} from \"./query-builder/result/InsertResult\";\nexport {UpdateResult} from \"./query-builder/result/UpdateResult\";\nexport {DeleteResult} from \"./query-builder/result/DeleteResult\";\nexport {QueryResult} from \"./query-runner/QueryResult\";\nexport {QueryRunner} from \"./query-runner/QueryRunner\";\nexport {MongoEntityManager} from \"./entity-manager/MongoEntityManager\";\nexport {Migration} from \"./migration/Migration\";\nexport {MigrationExecutor} from \"./migration/MigrationExecutor\";\nexport {MigrationInterface} from \"./migration/MigrationInterface\";\nexport {DefaultNamingStrategy} from \"./naming-strategy/DefaultNamingStrategy\";\nexport {NamingStrategyInterface} from \"./naming-strategy/NamingStrategyInterface\";\nexport {FindOneOptions} from \"./find-options/FindOneOptions\";\nexport {FindManyOptions} from \"./find-options/FindManyOptions\";\nexport {InsertEvent} from \"./subscriber/event/InsertEvent\";\nexport {LoadEvent} from \"./subscriber/event/LoadEvent\";\nexport {UpdateEvent} from \"./subscriber/event/UpdateEvent\";\nexport {RemoveEvent} from \"./subscriber/event/RemoveEvent\";\nexport {TransactionCommitEvent} from \"./subscriber/event/TransactionCommitEvent\";\nexport {TransactionRollbackEvent} from \"./subscriber/event/TransactionRollbackEvent\";\nexport {TransactionStartEvent} from \"./subscriber/event/TransactionStartEvent\";\nexport {EntitySubscriberInterface} from \"./subscriber/EntitySubscriberInterface\";\nexport {EntitySchema} from \"./entity-schema/EntitySchema\";\nexport {EntitySchemaColumnOptions} from \"./entity-schema/EntitySchemaColumnOptions\";\nexport {EntitySchemaIndexOptions} from \"./entity-schema/EntitySchemaIndexOptions\";\nexport {EntitySchemaRelationOptions} from \"./entity-schema/EntitySchemaRelationOptions\";\nexport {ColumnType} from \"./driver/types/ColumnTypes\";\n"],"sourceRoot":"."}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA;GACG;AACH,4BAA0B;AAE1B,4EAA4E;AAC5E,wBAAwB;AACxB,4EAA4E;AAE5E,yDAA0B;AAC1B,2DAA4B;AAC5B,qEAAsC;AACtC,mEAAoC;AACpC,sEAAuC;AACvC,oEAAqC;AACrC,qEAAsC;AACtC,uDAAwB;AACxB,0EAA2C;AAC3C,oFAAqD;AACrD,oFAAqD;AACrD,0FAA2D;AAC3D,iFAAkD;AAClD,oFAAqD;AACrD,iFAAkD;AAClD,8EAA+C;AAC/C,kFAAmD;AACnD,iFAAkD;AAClD,+EAAgD;AAChD,iFAAkD;AAClD,iFAAkD;AAClD,kFAAmD;AACnD,kFAAmD;AACnD,kFAAmD;AACnD,qFAAsD;AACtD,iFAAkD;AAClD,gFAAiD;AACjD,qFAAsD;AACtD,oFAAqD;AACrD,mFAAoD;AACpD,iFAAkD;AAClD,oFAAqD;AACrD,gFAAiD;AACjD,+EAAgD;AAChD,gFAAiD;AACjD,+EAAgD;AAChD,+EAAgD;AAChD,8EAA+C;AAC/C,mFAAoD;AACpD,gFAAiD;AACjD,yEAA0C;AAC1C,8EAA+C;AAC/C,mFAAoD;AACpD,kFAAmD;AACnD,mFAAoD;AACpD,0FAA2D;AAC3D,6FAA8D;AAC9D,gFAAiD;AACjD,2EAA4C;AAC5C,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B,yEAAsE;AAA9D,wHAAA,kBAAkB,OAAA;AAC1B,6EAA0E;AAAlE,4HAAA,oBAAoB,OAAA;AAC5B,qDAAkD;AAA1C,oGAAA,QAAQ,OAAA;AAChB,2DAAwD;AAAhD,0GAAA,WAAW,OAAA;AAGnB,oEAAiE;AAAzD,4GAAA,YAAY,OAAA;AACpB,oEAAiE;AAAzD,4GAAA,YAAY,OAAA;AACpB,oEAAiE;AAAzD,4GAAA,YAAY,OAAA;AACpB,0DAAuD;AAA/C,0GAAA,WAAW,OAAA;AAEnB,0EAAuE;AAA/D,wHAAA,kBAAkB,OAAA;AAC1B,mDAAgD;AAAxC,sGAAA,SAAS,OAAA;AACjB,mEAAgE;AAAxD,sHAAA,iBAAiB,OAAA;AAEzB,iFAA8E;AAAtE,8HAAA,qBAAqB,OAAA;AAY7B,6DAA0D;AAAlD,4GAAA,YAAY,OAAA","file":"index.js","sourcesContent":["/*!\n */\nimport \"reflect-metadata\";\n\n// -------------------------------------------------------------------------\n// Commonly Used exports\n// -------------------------------------------------------------------------\n\nexport * from \"./globals\";\nexport * from \"./container\";\nexport * from \"./common/EntityTarget\";\nexport * from \"./common/ObjectType\";\nexport * from \"./common/ObjectLiteral\";\nexport * from \"./common/DeepPartial\";\nexport * from \"./common/RelationType\";\nexport * from \"./error\";\nexport * from \"./decorator/columns/Column\";\nexport * from \"./decorator/columns/CreateDateColumn\";\nexport * from \"./decorator/columns/DeleteDateColumn\";\nexport * from \"./decorator/columns/PrimaryGeneratedColumn\";\nexport * from \"./decorator/columns/PrimaryColumn\";\nexport * from \"./decorator/columns/UpdateDateColumn\";\nexport * from \"./decorator/columns/VersionColumn\";\nexport * from \"./decorator/columns/ViewColumn\";\nexport * from \"./decorator/columns/ObjectIdColumn\";\nexport * from \"./decorator/listeners/AfterInsert\";\nexport * from \"./decorator/listeners/AfterLoad\";\nexport * from \"./decorator/listeners/AfterRemove\";\nexport * from \"./decorator/listeners/AfterUpdate\";\nexport * from \"./decorator/listeners/BeforeInsert\";\nexport * from \"./decorator/listeners/BeforeRemove\";\nexport * from \"./decorator/listeners/BeforeUpdate\";\nexport * from \"./decorator/listeners/EventSubscriber\";\nexport * from \"./decorator/options/ColumnOptions\";\nexport * from \"./decorator/options/IndexOptions\";\nexport * from \"./decorator/options/JoinColumnOptions\";\nexport * from \"./decorator/options/JoinTableOptions\";\nexport * from \"./decorator/options/RelationOptions\";\nexport * from \"./decorator/options/EntityOptions\";\nexport * from \"./decorator/options/ValueTransformer\";\nexport * from \"./decorator/relations/JoinColumn\";\nexport * from \"./decorator/relations/JoinTable\";\nexport * from \"./decorator/relations/ManyToMany\";\nexport * from \"./decorator/relations/ManyToOne\";\nexport * from \"./decorator/relations/OneToMany\";\nexport * from \"./decorator/relations/OneToOne\";\nexport * from \"./decorator/relations/RelationCount\";\nexport * from \"./decorator/relations/RelationId\";\nexport * from \"./decorator/entity/Entity\";\nexport * from \"./decorator/entity/ChildEntity\";\nexport * from \"./decorator/entity/TableInheritance\";\nexport * from \"./decorator/entity-view/ViewEntity\";\nexport * from \"./decorator/transaction/Transaction\";\nexport * from \"./decorator/transaction/TransactionManager\";\nexport * from \"./decorator/transaction/TransactionRepository\";\nexport * from \"./decorator/tree/TreeLevelColumn\";\nexport * from \"./decorator/tree/TreeParent\";\nexport * from \"./decorator/tree/TreeChildren\";\nexport * from \"./decorator/tree/Tree\";\nexport * from \"./decorator/Index\";\nexport * from \"./decorator/Unique\";\nexport * from \"./decorator/Check\";\nexport * from \"./decorator/Exclusion\";\nexport * from \"./decorator/Generated\";\nexport * from \"./decorator/EntityRepository\";\nexport * from \"./find-options/operator/Any\";\nexport * from \"./find-options/operator/Between\";\nexport * from \"./find-options/operator/Equal\";\nexport * from \"./find-options/operator/In\";\nexport * from \"./find-options/operator/IsNull\";\nexport * from \"./find-options/operator/LessThan\";\nexport * from \"./find-options/operator/LessThanOrEqual\";\nexport * from \"./find-options/operator/ILike\";\nexport * from \"./find-options/operator/Like\";\nexport * from \"./find-options/operator/MoreThan\";\nexport * from \"./find-options/operator/MoreThanOrEqual\";\nexport * from \"./find-options/operator/Not\";\nexport * from \"./find-options/operator/Raw\";\nexport * from \"./find-options/FindConditions\";\nexport * from \"./find-options/FindManyOptions\";\nexport * from \"./find-options/FindOneOptions\";\nexport * from \"./find-options/FindOperator\";\nexport * from \"./find-options/FindOperatorType\";\nexport * from \"./find-options/JoinOptions\";\nexport * from \"./find-options/OrderByCondition\";\nexport * from \"./find-options/FindOptionsUtils\";\nexport * from \"./logger/Logger\";\nexport * from \"./logger/LoggerOptions\";\nexport * from \"./logger/AdvancedConsoleLogger\";\nexport * from \"./logger/SimpleConsoleLogger\";\nexport * from \"./logger/FileLogger\";\nexport * from \"./metadata/EntityMetadata\";\nexport * from \"./entity-manager/EntityManager\";\nexport * from \"./repository/AbstractRepository\";\nexport * from \"./repository/Repository\";\nexport * from \"./repository/BaseEntity\";\nexport * from \"./repository/TreeRepository\";\nexport * from \"./repository/MongoRepository\";\nexport * from \"./repository/RemoveOptions\";\nexport * from \"./repository/SaveOptions\";\nexport * from \"./schema-builder/table/TableCheck\";\nexport * from \"./schema-builder/table/TableColumn\";\nexport * from \"./schema-builder/table/TableExclusion\";\nexport * from \"./schema-builder/table/TableForeignKey\";\nexport * from \"./schema-builder/table/TableIndex\";\nexport * from \"./schema-builder/table/TableUnique\";\nexport * from \"./schema-builder/table/Table\";\nexport * from \"./schema-builder/options/TableCheckOptions\";\nexport * from \"./schema-builder/options/TableColumnOptions\";\nexport * from \"./schema-builder/options/TableExclusionOptions\";\nexport * from \"./schema-builder/options/TableForeignKeyOptions\";\nexport * from \"./schema-builder/options/TableIndexOptions\";\nexport * from \"./schema-builder/options/TableOptions\";\nexport * from \"./schema-builder/options/TableUniqueOptions\";\nexport * from \"./schema-builder/options/ViewOptions\";\nexport * from \"./driver/mongodb/typings\";\nexport * from \"./driver/types/DatabaseType\";\nexport * from \"./driver/types/ReplicationMode\";\nexport * from \"./driver/sqlserver/MssqlParameter\";\n\nexport {ConnectionOptionsReader} from \"./connection/ConnectionOptionsReader\";\nexport {Connection} from \"./connection/Connection\";\nexport {ConnectionManager} from \"./connection/ConnectionManager\";\nexport {ConnectionOptions} from \"./connection/ConnectionOptions\";\nexport {Driver} from \"./driver/Driver\";\nexport {QueryBuilder} from \"./query-builder/QueryBuilder\";\nexport {SelectQueryBuilder} from \"./query-builder/SelectQueryBuilder\";\nexport {DeleteQueryBuilder} from \"./query-builder/DeleteQueryBuilder\";\nexport {InsertQueryBuilder} from \"./query-builder/InsertQueryBuilder\";\nexport {UpdateQueryBuilder} from \"./query-builder/UpdateQueryBuilder\";\nexport {RelationQueryBuilder} from \"./query-builder/RelationQueryBuilder\";\nexport {Brackets} from \"./query-builder/Brackets\";\nexport {NotBrackets} from \"./query-builder/NotBrackets\";\nexport {WhereExpressionBuilder} from \"./query-builder/WhereExpressionBuilder\";\nexport {WhereExpression} from \"./query-builder/WhereExpressionBuilder\";\nexport {InsertResult} from \"./query-builder/result/InsertResult\";\nexport {UpdateResult} from \"./query-builder/result/UpdateResult\";\nexport {DeleteResult} from \"./query-builder/result/DeleteResult\";\nexport {QueryResult} from \"./query-runner/QueryResult\";\nexport {QueryRunner} from \"./query-runner/QueryRunner\";\nexport {MongoEntityManager} from \"./entity-manager/MongoEntityManager\";\nexport {Migration} from \"./migration/Migration\";\nexport {MigrationExecutor} from \"./migration/MigrationExecutor\";\nexport {MigrationInterface} from \"./migration/MigrationInterface\";\nexport {DefaultNamingStrategy} from \"./naming-strategy/DefaultNamingStrategy\";\nexport {NamingStrategyInterface} from \"./naming-strategy/NamingStrategyInterface\";\nexport {FindOneOptions} from \"./find-options/FindOneOptions\";\nexport {FindManyOptions} from \"./find-options/FindManyOptions\";\nexport {InsertEvent} from \"./subscriber/event/InsertEvent\";\nexport {LoadEvent} from \"./subscriber/event/LoadEvent\";\nexport {UpdateEvent} from \"./subscriber/event/UpdateEvent\";\nexport {RemoveEvent} from \"./subscriber/event/RemoveEvent\";\nexport {TransactionCommitEvent} from \"./subscriber/event/TransactionCommitEvent\";\nexport {TransactionRollbackEvent} from \"./subscriber/event/TransactionRollbackEvent\";\nexport {TransactionStartEvent} from \"./subscriber/event/TransactionStartEvent\";\nexport {EntitySubscriberInterface} from \"./subscriber/EntitySubscriberInterface\";\nexport {EntitySchema} from \"./entity-schema/EntitySchema\";\nexport {EntitySchemaColumnOptions} from \"./entity-schema/EntitySchemaColumnOptions\";\nexport {EntitySchemaIndexOptions} from \"./entity-schema/EntitySchemaIndexOptions\";\nexport {EntitySchemaRelationOptions} from \"./entity-schema/EntitySchemaRelationOptions\";\nexport {ColumnType} from \"./driver/types/ColumnTypes\";\n"],"sourceRoot":"."}
package/index.mjs ADDED
@@ -0,0 +1,352 @@
1
+ import TypeORM from "./index.js";
2
+ const {
3
+ ConnectionOptionsReader,
4
+ Connection,
5
+ ConnectionManager,
6
+ QueryBuilder,
7
+ SelectQueryBuilder,
8
+ DeleteQueryBuilder,
9
+ InsertQueryBuilder,
10
+ UpdateQueryBuilder,
11
+ RelationQueryBuilder,
12
+ Brackets,
13
+ NotBrackets,
14
+ InsertResult,
15
+ UpdateResult,
16
+ DeleteResult,
17
+ QueryResult,
18
+ MongoEntityManager,
19
+ Migration,
20
+ MigrationExecutor,
21
+ DefaultNamingStrategy,
22
+ EntitySchema,
23
+ getMetadataArgsStorage,
24
+ getConnectionOptions,
25
+ getConnectionManager,
26
+ createConnection,
27
+ createConnections,
28
+ getConnection,
29
+ getManager,
30
+ getMongoManager,
31
+ getSqljsManager,
32
+ getRepository,
33
+ getTreeRepository,
34
+ getCustomRepository,
35
+ getMongoRepository,
36
+ createQueryBuilder,
37
+ useContainer,
38
+ getFromContainer,
39
+ CannotReflectMethodParameterTypeError,
40
+ AlreadyHasActiveConnectionError,
41
+ SubjectWithoutIdentifierError,
42
+ CannotConnectAlreadyConnectedError,
43
+ LockNotSupportedOnGivenDriverError,
44
+ ConnectionIsNotSetError,
45
+ CannotCreateEntityIdMapError,
46
+ MetadataAlreadyExistsError,
47
+ CannotDetermineEntityError,
48
+ UpdateValuesMissingError,
49
+ TreeRepositoryNotSupportedError,
50
+ CustomRepositoryNotFoundError,
51
+ TransactionNotStartedError,
52
+ TransactionAlreadyStartedError,
53
+ EntityNotFoundError,
54
+ EntityMetadataNotFoundError,
55
+ MustBeEntityError,
56
+ OptimisticLockVersionMismatchError,
57
+ LimitOnUpdateNotSupportedError,
58
+ PrimaryColumnCannotBeNullableError,
59
+ CustomRepositoryCannotInheritRepositoryError,
60
+ QueryRunnerProviderAlreadyReleasedError,
61
+ CannotAttachTreeChildrenEntityError,
62
+ CustomRepositoryDoesNotHaveEntityError,
63
+ MissingDeleteDateColumnError,
64
+ NoConnectionForRepositoryError,
65
+ CircularRelationsError,
66
+ ReturningStatementNotSupportedError,
67
+ UsingJoinTableIsNotAllowedError,
68
+ MissingJoinColumnError,
69
+ MissingPrimaryColumnError,
70
+ EntityColumnNotFound,
71
+ MissingDriverError,
72
+ DriverPackageNotInstalledError,
73
+ CannotGetEntityManagerNotConnectedError,
74
+ ConnectionNotFoundError,
75
+ NoVersionOrUpdateDateColumnError,
76
+ InsertValuesMissingError,
77
+ OptimisticLockCanNotBeUsedError,
78
+ MetadataWithSuchNameAlreadyExistsError,
79
+ DriverOptionNotSetError,
80
+ FindRelationsNotFoundError,
81
+ RepositoryNotFoundError,
82
+ NamingStrategyNotFoundError,
83
+ PessimisticLockTransactionRequiredError,
84
+ RepositoryNotTreeError,
85
+ DataTypeNotSupportedError,
86
+ InitializedRelationError,
87
+ MissingJoinTableError,
88
+ QueryFailedError,
89
+ NoNeedToReleaseEntityManagerError,
90
+ UsingJoinColumnOnlyOnOneSideAllowedError,
91
+ UsingJoinTableOnlyOnOneSideAllowedError,
92
+ SubjectRemovedAndUpdatedError,
93
+ PersistedEntityNotFoundError,
94
+ UsingJoinColumnIsNotAllowedError,
95
+ ColumnTypeUndefinedError,
96
+ QueryRunnerAlreadyReleasedError,
97
+ OffsetWithoutLimitNotSupportedError,
98
+ CannotExecuteNotConnectedError,
99
+ NoConnectionOptionError,
100
+ TypeORMError,
101
+ Column,
102
+ CreateDateColumn,
103
+ DeleteDateColumn,
104
+ PrimaryGeneratedColumn,
105
+ PrimaryColumn,
106
+ UpdateDateColumn,
107
+ VersionColumn,
108
+ ViewColumn,
109
+ ObjectIdColumn,
110
+ AfterInsert,
111
+ AfterLoad,
112
+ AfterRemove,
113
+ AfterUpdate,
114
+ BeforeInsert,
115
+ BeforeRemove,
116
+ BeforeUpdate,
117
+ EventSubscriber,
118
+ JoinColumn,
119
+ JoinTable,
120
+ ManyToMany,
121
+ ManyToOne,
122
+ OneToMany,
123
+ OneToOne,
124
+ RelationCount,
125
+ RelationId,
126
+ Entity,
127
+ ChildEntity,
128
+ TableInheritance,
129
+ ViewEntity,
130
+ Transaction,
131
+ TransactionManager,
132
+ TransactionRepository,
133
+ TreeLevelColumn,
134
+ TreeParent,
135
+ TreeChildren,
136
+ Tree,
137
+ Index,
138
+ Unique,
139
+ Check,
140
+ Exclusion,
141
+ Generated,
142
+ EntityRepository,
143
+ Any,
144
+ Between,
145
+ Equal,
146
+ In,
147
+ IsNull,
148
+ LessThan,
149
+ LessThanOrEqual,
150
+ ILike,
151
+ Like,
152
+ MoreThan,
153
+ MoreThanOrEqual,
154
+ Not,
155
+ Raw,
156
+ FindOperator,
157
+ FindOptionsUtils,
158
+ AdvancedConsoleLogger,
159
+ SimpleConsoleLogger,
160
+ FileLogger,
161
+ EntityMetadata,
162
+ EntityManager,
163
+ AbstractRepository,
164
+ Repository,
165
+ BaseEntity,
166
+ TreeRepository,
167
+ MongoRepository,
168
+ TableCheck,
169
+ TableColumn,
170
+ TableExclusion,
171
+ TableForeignKey,
172
+ TableIndex,
173
+ TableUnique,
174
+ Table,
175
+ MssqlParameter
176
+ } = TypeORM;
177
+ export {
178
+ ConnectionOptionsReader,
179
+ Connection,
180
+ ConnectionManager,
181
+ QueryBuilder,
182
+ SelectQueryBuilder,
183
+ DeleteQueryBuilder,
184
+ InsertQueryBuilder,
185
+ UpdateQueryBuilder,
186
+ RelationQueryBuilder,
187
+ Brackets,
188
+ NotBrackets,
189
+ InsertResult,
190
+ UpdateResult,
191
+ DeleteResult,
192
+ QueryResult,
193
+ MongoEntityManager,
194
+ Migration,
195
+ MigrationExecutor,
196
+ DefaultNamingStrategy,
197
+ EntitySchema,
198
+ getMetadataArgsStorage,
199
+ getConnectionOptions,
200
+ getConnectionManager,
201
+ createConnection,
202
+ createConnections,
203
+ getConnection,
204
+ getManager,
205
+ getMongoManager,
206
+ getSqljsManager,
207
+ getRepository,
208
+ getTreeRepository,
209
+ getCustomRepository,
210
+ getMongoRepository,
211
+ createQueryBuilder,
212
+ useContainer,
213
+ getFromContainer,
214
+ CannotReflectMethodParameterTypeError,
215
+ AlreadyHasActiveConnectionError,
216
+ SubjectWithoutIdentifierError,
217
+ CannotConnectAlreadyConnectedError,
218
+ LockNotSupportedOnGivenDriverError,
219
+ ConnectionIsNotSetError,
220
+ CannotCreateEntityIdMapError,
221
+ MetadataAlreadyExistsError,
222
+ CannotDetermineEntityError,
223
+ UpdateValuesMissingError,
224
+ TreeRepositoryNotSupportedError,
225
+ CustomRepositoryNotFoundError,
226
+ TransactionNotStartedError,
227
+ TransactionAlreadyStartedError,
228
+ EntityNotFoundError,
229
+ EntityMetadataNotFoundError,
230
+ MustBeEntityError,
231
+ OptimisticLockVersionMismatchError,
232
+ LimitOnUpdateNotSupportedError,
233
+ PrimaryColumnCannotBeNullableError,
234
+ CustomRepositoryCannotInheritRepositoryError,
235
+ QueryRunnerProviderAlreadyReleasedError,
236
+ CannotAttachTreeChildrenEntityError,
237
+ CustomRepositoryDoesNotHaveEntityError,
238
+ MissingDeleteDateColumnError,
239
+ NoConnectionForRepositoryError,
240
+ CircularRelationsError,
241
+ ReturningStatementNotSupportedError,
242
+ UsingJoinTableIsNotAllowedError,
243
+ MissingJoinColumnError,
244
+ MissingPrimaryColumnError,
245
+ EntityColumnNotFound,
246
+ MissingDriverError,
247
+ DriverPackageNotInstalledError,
248
+ CannotGetEntityManagerNotConnectedError,
249
+ ConnectionNotFoundError,
250
+ NoVersionOrUpdateDateColumnError,
251
+ InsertValuesMissingError,
252
+ OptimisticLockCanNotBeUsedError,
253
+ MetadataWithSuchNameAlreadyExistsError,
254
+ DriverOptionNotSetError,
255
+ FindRelationsNotFoundError,
256
+ RepositoryNotFoundError,
257
+ NamingStrategyNotFoundError,
258
+ PessimisticLockTransactionRequiredError,
259
+ RepositoryNotTreeError,
260
+ DataTypeNotSupportedError,
261
+ InitializedRelationError,
262
+ MissingJoinTableError,
263
+ QueryFailedError,
264
+ NoNeedToReleaseEntityManagerError,
265
+ UsingJoinColumnOnlyOnOneSideAllowedError,
266
+ UsingJoinTableOnlyOnOneSideAllowedError,
267
+ SubjectRemovedAndUpdatedError,
268
+ PersistedEntityNotFoundError,
269
+ UsingJoinColumnIsNotAllowedError,
270
+ ColumnTypeUndefinedError,
271
+ QueryRunnerAlreadyReleasedError,
272
+ OffsetWithoutLimitNotSupportedError,
273
+ CannotExecuteNotConnectedError,
274
+ NoConnectionOptionError,
275
+ TypeORMError,
276
+ Column,
277
+ CreateDateColumn,
278
+ DeleteDateColumn,
279
+ PrimaryGeneratedColumn,
280
+ PrimaryColumn,
281
+ UpdateDateColumn,
282
+ VersionColumn,
283
+ ViewColumn,
284
+ ObjectIdColumn,
285
+ AfterInsert,
286
+ AfterLoad,
287
+ AfterRemove,
288
+ AfterUpdate,
289
+ BeforeInsert,
290
+ BeforeRemove,
291
+ BeforeUpdate,
292
+ EventSubscriber,
293
+ JoinColumn,
294
+ JoinTable,
295
+ ManyToMany,
296
+ ManyToOne,
297
+ OneToMany,
298
+ OneToOne,
299
+ RelationCount,
300
+ RelationId,
301
+ Entity,
302
+ ChildEntity,
303
+ TableInheritance,
304
+ ViewEntity,
305
+ Transaction,
306
+ TransactionManager,
307
+ TransactionRepository,
308
+ TreeLevelColumn,
309
+ TreeParent,
310
+ TreeChildren,
311
+ Tree,
312
+ Index,
313
+ Unique,
314
+ Check,
315
+ Exclusion,
316
+ Generated,
317
+ EntityRepository,
318
+ Any,
319
+ Between,
320
+ Equal,
321
+ In,
322
+ IsNull,
323
+ LessThan,
324
+ LessThanOrEqual,
325
+ ILike,
326
+ Like,
327
+ MoreThan,
328
+ MoreThanOrEqual,
329
+ Not,
330
+ Raw,
331
+ FindOperator,
332
+ FindOptionsUtils,
333
+ AdvancedConsoleLogger,
334
+ SimpleConsoleLogger,
335
+ FileLogger,
336
+ EntityMetadata,
337
+ EntityManager,
338
+ AbstractRepository,
339
+ Repository,
340
+ BaseEntity,
341
+ TreeRepository,
342
+ MongoRepository,
343
+ TableCheck,
344
+ TableColumn,
345
+ TableExclusion,
346
+ TableForeignKey,
347
+ TableIndex,
348
+ TableUnique,
349
+ Table,
350
+ MssqlParameter
351
+ };
352
+ export default TypeORM;
@@ -266,7 +266,7 @@ var MigrationExecutor = /** @class */ (function () {
266
266
  _c.label = 2;
267
267
  case 2: return [4 /*yield*/, migration.instance.up(queryRunner)
268
268
  .catch(function (error) {
269
- _this.connection.logger.logMigration("Migration \"" + migration.name + "\" has been failed, error: " + (error === null || error === void 0 ? void 0 : error.message));
269
+ _this.connection.logger.logMigration("Migration \"" + migration.name + "\" failed, error: " + (error === null || error === void 0 ? void 0 : error.message));
270
270
  throw error;
271
271
  })
272
272
  .then(function () { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () {