datasquirel/package-shared/shell/createDbFromSchema.d.ts

15 lines
618 B
TypeScript
Raw Normal View History

2024-12-06 10:44:26 +00:00
export = createDbFromSchema;
/**
* Create database from Schema Function
2024-12-08 08:58:57 +00:00
* =============================================
2024-12-06 10:44:26 +00:00
* @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>;