13 lines
492 B
TypeScript
13 lines
492 B
TypeScript
import type { BUN_SQLITE_DatabaseSchemaType, BUN_SQLITE_TableSchemaType } from "../../types";
|
|
type Params = {
|
|
table: BUN_SQLITE_TableSchemaType;
|
|
db_schema: BUN_SQLITE_DatabaseSchemaType;
|
|
};
|
|
/**
|
|
* Resolve a table's effective definition. Tables with `parentTableName`
|
|
* take their structure from the parent. Always returns a copy: the schema
|
|
* objects are never mutated.
|
|
*/
|
|
export default function resolveTable({ table, db_schema, }: Params): BUN_SQLITE_TableSchemaType;
|
|
export {};
|