UNPKG

@nodeboot/starter-persistence

Version:

Nodeboot starter package for persistence. Supports data access layer auto-configuration providing features like database initialization, consistency check, entity mapping, repository pattern, transactions, paging, migrations, persistence listeners, persis

23 lines 1.12 kB
import { IocContainer, RepositoriesAdapter } from "@nodeboot/context"; /** * Default implementation of the {@link RepositoriesAdapter} interface. * * Responsible for binding all repositories from the {@link PersistenceContext} * to the provided IoC container, initializing them with the TypeORM EntityManager, * and caching them inside the EntityManager and the IoC container. */ export declare class DefaultRepositoriesAdapter implements RepositoriesAdapter { /** * Binds repositories to the given IoC container. * * Retrieves the TypeORM EntityManager and a Winston Logger instance from the container, * then iterates over all repositories defined in the {@link PersistenceContext}. * For each repository, it creates an instance, logs the registration, * stores the instance in the EntityManager's repository cache, and * registers the instance with the IoC container. * * @param {IocContainer} iocContainer - The IoC container to bind repositories to. */ bind(iocContainer: IocContainer): void; } //# sourceMappingURL=DefaultRepositoriesAdapter.d.ts.map