datasquirel/package-shared/shell/createDbFromSchema.d.ts
Benjamin Toby c49513c189 Updates
2024-12-06 11:44:26 +01:00

15 lines
651 B
TypeScript

export = createDbFromSchema;
/**
* Create database from Schema Function
* ==============================================================================
* @param {object} params - Single object params
* @param {number|string|null} [params.userId] - User ID or null
* @param {string} [params.targetDatabase] - User Database full name
* @param {import("../types").DSQL_DatabaseSchemaType[]} [params.dbSchemaData]
*/
declare function createDbFromSchema({ userId, targetDatabase, dbSchemaData }: {
userId?: number | string | null;
targetDatabase?: string;
dbSchemaData?: import("../types").DSQL_DatabaseSchemaType[];
}): Promise<void>;