14 lines
510 B
TypeScript
14 lines
510 B
TypeScript
import type { BUN_SQLITE_TableSchemaType, CreateDBSchemaParams } from "../../types";
|
|
type Params = CreateDBSchemaParams & {
|
|
table: BUN_SQLITE_TableSchemaType;
|
|
};
|
|
/**
|
|
* # Update an existing table
|
|
* @description SQLite has limited ALTER TABLE support, so a changed table is
|
|
* rebuilt: create a temp table with the new schema, copy the data over,
|
|
* drop the old table and rename the temp table. Unchanged tables are left
|
|
* alone.
|
|
*/
|
|
export default function updateTable(params: Params): void;
|
|
export {};
|