13 lines
538 B
TypeScript
13 lines
538 B
TypeScript
import { AddUpdateMariadbUserAPIReqBody, UserType } from "../../../types";
|
|
import { DSQL_DATASQUIREL_MARIADB_USERS } from "../../../types/dsql";
|
|
type Params = AddUpdateMariadbUserAPIReqBody & {
|
|
user: UserType;
|
|
};
|
|
type Return = {
|
|
existingRecord?: DSQL_DATASQUIREL_MARIADB_USERS | null;
|
|
updatedRecord?: DSQL_DATASQUIREL_MARIADB_USERS | null;
|
|
msg?: string;
|
|
};
|
|
export default function handleMariadbUserRecord({ mariadbUser, accessedDatabases, grants, isAllDbsAccess, isAllGrants, user, }: Params): Promise<Return>;
|
|
export {};
|