All files / src typeorm.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24                                               
/**
 * TypeORM 适配器入口
 *
 * 提供TypeORM分页查询功能,需要安装typeorm作为peerDependency。
 *
 * @example
 * ```typescript
 * import { paginateWithRepository } from '@longzai-intelligence/pagination/typeorm';
 *
 * const result = await paginateWithRepository(userRepository, {
 *   page: 1,
 *   pageSize: 20,
 * });
 * ```
 */
 
export type { EntityMapper, TypeOrmPaginateOptions } from './adapters/typeorm.adapter';
 
export {
  paginateWithRepository,
  paginateWithQueryBuilder,
  createPaginationQueryBuilder,
} from './adapters/typeorm.adapter';