/** * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ import { Table } from './table.js'; /** A collection of tables */ type Database = { readonly _name: string; readonly _tableNames: ReadonlyArray; readonly _schema: Schema; } & Database.Tables; declare namespace Database { type Tables = { [T in keyof S]: Table; }; type Schema = { [table: string]: Table.Schema; }; function ofTables(name: string, schema: Schema, tables: Tables): any; function getTablesAsRows(database: Database): { [k: string]: Table.Row[]; }; } export { Database };