UNPKG

tessradb

Version:
22 lines (21 loc) 548 B
import { TessraCollection } from "./collection"; /** * Main class of TessraDB */ export declare class TessraDB { #private; name: string; colNames: Array<string>; constructor(name: string); /** * Function to get collection by name * @param name name of the collection * @returns full collection */ getCollection(name: string): Promise<TessraCollection>; /** * Creates collection * @param name name of the collection */ createCollection(name: string): Promise<TessraCollection>; }