datasquirel/dist/package-shared/functions/web-app/mariadb-user/handle-mariadb-user-creation.d.ts
Benjamin Toby 7e8bb37c09 Updates
2025-07-05 14:59:30 +01:00

20 lines
675 B
TypeScript

import { DSQL_DATASQUIREL_MARIADB_USERS } from "../../../types/dsql";
import { UserType } from "../../../types";
type Params = {
user: UserType;
existingRecord?: DSQL_DATASQUIREL_MARIADB_USERS | null;
updatedRecord: DSQL_DATASQUIREL_MARIADB_USERS;
};
type Return = {
msg?: string;
success?: boolean;
};
export default function handleMariadbUserCreation({ user, existingRecord, updatedRecord, }: Params): Promise<Return>;
type CreateNewUserParams = {
username?: string;
host?: string;
password?: string;
};
export declare function createNewSQLUser({ host, password, username, }: CreateNewUserParams): Promise<object | any[] | null>;
export {};