datasquirel/dist/package-shared/shell/utils/handle-mariadb-existing-columns.d.ts
2026-01-03 05:34:24 +01:00

19 lines
676 B
TypeScript

import { DSQL_DatabaseSchemaType, DSQL_FieldSchemaType, DSQL_MYSQL_SHOW_COLUMNS_Type } from "../../types";
type Param = {
dbFullName: string;
tableName: string;
fields: DSQL_FieldSchemaType[];
dbSchema: DSQL_DatabaseSchemaType;
userId?: number | string | null;
};
/**
* Handle MYSQL Columns (Fields)
* ===================================================
* @description Now handle all fields/columns
*/
export default function handleMariaDBExistingColumns({ dbFullName, tableName, fields, dbSchema, userId, }: Param): Promise<{
upToDateTableFieldsArray: DSQL_FieldSchemaType[];
allExistingColumns: DSQL_MYSQL_SHOW_COLUMNS_Type[];
}>;
export {};