function checkBatchAvailabilityImpl
checkBatchAvailabilityImpl(
date?: string | null,
): Promise<boolean>

Check a whole booking batch in one preflight query. Every read pins to the primary. Production callers treat false as final, so a replica that has not replayed a cancellation yet must not reject an order that fits. The guarded write still catches the opposite error, so no oversell is possible either way.

Parameters

optional
date: string | null

Return Type

Promise<boolean>

Usage

import { checkBatchAvailabilityImpl } from "docs/database.ts";