PrismaStaticPageRepository
@adamondo/backend / infrastructure/prisma/repositories/PrismaStaticPageRepository
infrastructure/prisma/repositories/PrismaStaticPageRepository
Classes
PrismaStaticPageRepository
Defined in: src/infrastructure/prisma/repositories/PrismaStaticPageRepository.ts:11
Repository contract for StaticPageRepository, defining persistence capabilities required by services. Use cases:
- Decouple business logic from ORM details.
- Provide testable abstractions for read/write operations. Example: Implemented by Prisma repositories in src/infrastructure/prisma/repositories.
Implements
Constructors
Constructor
new PrismaStaticPageRepository(
prisma):PrismaStaticPageRepository
Defined in: src/infrastructure/prisma/repositories/PrismaStaticPageRepository.ts:12
Parameters
prisma
Returns
Methods
findById()
findById(
id):Promise<any>
Defined in: src/infrastructure/prisma/repositories/PrismaStaticPageRepository.ts:14
Parameters
id
number
Returns
Promise<any>