Module

x/pg_mem/interfaces.ts>IBackup

An in memory postgres DB instance for your unit tests
Go to Latest
interface IBackup
import { type IBackup } from "https://dotland.deno.dev/x/pg_mem@2.6.3/interfaces.ts";

Methods

restore(): void

Restores data to the state when this backup has been performed. 👉 This operation is O(1). 👉 Schema must not have been changed since then !