NexusDataSource
A TypeORM data source for ISP Nexus modules.
Extends
DataSource
Implements
AsyncDisposable
AsyncInitializable
Constructors
new NexusDataSource()
new NexusDataSource(options): NexusDataSource
Parameters
Parameter | Type |
---|---|
options | NexusDataSourceConfig |
Returns
Overrides
DataSource.constructor
Properties
@instanceof
readonly @instanceof: symbol;
Inherited from
DataSource.@instanceof
driver
driver: SpatiaLiteDriver;
Database driver used by this connection.
Overrides
DataSource.driver
entityMetadatas
readonly entityMetadatas: EntityMetadata[];
All entity metadatas that are registered for this connection.
Inherited from
DataSource.entityMetadatas
entityMetadatasMap
readonly entityMetadatasMap: Map<EntityTarget<any>, EntityMetadata>;
All entity metadatas that are registered for this connection. This is a copy of #.entityMetadatas property -> used for more performant searches.
Inherited from
DataSource.entityMetadatasMap
isInitialized
readonly isInitialized: boolean;
Indicates if DataSource is initialized or not.
Inherited from
DataSource.isInitialized
logger
logger: Logger;
Logger used to log orm events.
Inherited from
DataSource.logger
manager
readonly manager: EntityManager;
EntityManager of this connection.
Inherited from
DataSource.manager
metadataTableName
readonly metadataTableName: string;
Name for the metadata table
Inherited from
DataSource.metadataTableName
migrations
readonly migrations: MigrationInterface[];
Migration instances that are registered for this connection.
Inherited from
DataSource.migrations
name
readonly name: string;
Connection name.
Deprecated
we don't need names anymore since we are going to drop all related methods relying on this property.
Inherited from
DataSource.name
namingStrategy
namingStrategy: NamingStrategyInterface;
Naming strategy used in the connection.
Inherited from
DataSource.namingStrategy
options
readonly options: DataSourceOptions;
Connection options.
Inherited from
DataSource.options
pragmas
readonly pragmas: SQLitePragmaRecord;
queryResultCache?
optional queryResultCache: QueryResultCache;
Used to work with query result cache.
Inherited from
DataSource.queryResultCache
relationIdLoader
readonly relationIdLoader: RelationIdLoader;
Inherited from
DataSource.relationIdLoader
relationLoader
readonly relationLoader: RelationLoader;
Used to load relations and work with lazy relations.
Inherited from
DataSource.relationLoader
storagePath
readonly storagePath: PathBuilder<string> | ":memory:";
subscribers
readonly subscribers: EntitySubscriberInterface<any>[];
Entity subscriber instances that are registered for this connection.
Inherited from
DataSource.subscribers
kInit
static kInit: symbol;
Accessors
isConnected
get isConnected(): boolean
Indicates if DataSource is initialized or not. * *
Deprecated
use .isInitialized instead
Returns
boolean
Inherited from
DataSource.isConnected
mongoManager
get mongoManager(): MongoEntityManager
Gets the mongodb entity manager that allows to perform mongodb-specific repository operations with any entity in this connection.
Available only in mongodb connections.
Returns
MongoEntityManager
Inherited from
DataSource.mongoManager
sqljsManager
get sqljsManager(): SqljsEntityManager
Gets a sql.js specific Entity Manager that allows to perform special load and save operations
Available only in connection with the sqljs driver.
Returns
SqljsEntityManager
Inherited from
DataSource.sqljsManager
Methods
[asyncDispose]()
asyncDispose: Promise<void>