@breadstone/archipel-platform-database
Classes
| Class | Description |
|---|---|
| DatabaseHealthIndicator | Health indicator for database connectivity. |
| DatabaseModule | Represents the database module. |
| DatabaseService | Represents the database service. |
| PrismaService | Represents the prisma service. |
| RepositoryBase | The base class for all repositories. |
| RepositoryExceptionFilter | Represents the Prisma client exception filter. |
Interfaces
| Interface | Description |
|---|---|
| IDatabaseModuleConfig | Represents the database module configuration. |
| IPaginatedResult | - |
| IPaginateOptions | - |
| IRepositoryQuery | Represents a reusable query definition for repositories. |
| ITransactionalRepositoryQuery | Represents a repository query that requires a Prisma TransactionClient to access multiple delegates. |
Type Aliases
| Type Alias | Description |
|---|---|
| DelegateArgs | - |
| DelegateReturnTypes | - |
| PaginateFunction | - |
| QueryResultType | Extracts the result type from a repository query. Useful for type-safe mapping without duplicating query result types. |
| TransactionalQueryResultType | Extracts the result type from a transactional repository query. |
Functions
| Function | Description |
|---|---|
| pageable | - |
| paginator | - |
| query | Creates a new repository query. |
| skip | Utility function that returns the provided value or undefined if the value is undefined. In Prisma 6+, passing undefined for a field in a query signals Prisma to skip that field. |
| transactionalQuery | Factory to create a transactional repository query. |