Skip to main content

PrismaStaticPageRepository

@adamondo/backend


@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

PrismaClient

Returns

PrismaStaticPageRepository

Methods

findById()

findById(id): Promise<any>

Defined in: src/infrastructure/prisma/repositories/PrismaStaticPageRepository.ts:14

Parameters
id

number

Returns

Promise<any>

Implementation of

StaticPageRepository.findById