interface IOrmAdapter
Since 0.1.0

ORM adapter port — what the DatabasePlugin requires from any ORM integration.

This is the lifecycle half of the contract. A backend that also serves data access implements IDatabaseAdapter, which extends this.

Methods

connect(): Promise<void>

Opens the underlying connection (pool).

disconnect(): Promise<void>

Closes the underlying connection (pool).

isReady(): boolean

Reports whether the adapter is connected and usable.

Begins a transaction.

Usage

import { type IOrmAdapter } from "common/src/index.ts";