function defineTable
defineTable<Row, Input = Row>(config: { name: string; primaryKey: keyof Row & string; schema: TableSchema<Row>; }): Table<Row, Input>

Define a table with CRUD operations

Type Parameters

Row
Input = Row

Parameters

config: { name: string; primaryKey: keyof Row & string; schema: TableSchema<Row>; }

Return Type

Usage

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