1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

refactor: sqlite client ts refactor

This commit is contained in:
2022-04-14 18:25:13 +02:00
parent d85662cb7d
commit 5e2ad8c377
4 changed files with 292 additions and 393 deletions

View File

@ -105,7 +105,7 @@ export interface TableForeign {
export interface TableOptions {
name: string;
type: 'table' | 'view';
type?: 'table' | 'view';
engine?: string;
comment?: string;
collation?: string;
@ -114,7 +114,7 @@ export interface TableOptions {
export interface CreateTableParams {
/** Connection UID */
uid: string;
uid?: string;
schema: string;
fields: TableField[];
foreigns: TableForeign[];
@ -124,12 +124,18 @@ export interface CreateTableParams {
export interface AlterTableParams {
/** Connection UID */
uid: string;
uid?: string;
schema: string;
table: string;
additions: TableField[];
changes: TableField[];
deletions: TableField[];
tableStructure: {
name: string;
fields: TableField[];
foreigns: TableForeign[];
indexes: TableIndex[];
};
indexChanges: {
additions: TableIndex[];
changes: TableIndex[];