17 lines
352 B
TypeScript
17 lines
352 B
TypeScript
export interface GrantType {
|
|
database: string;
|
|
table: string;
|
|
privileges: string[];
|
|
}
|
|
type Param = {
|
|
username?: string;
|
|
host?: string;
|
|
grants?: GrantType[];
|
|
userId: string;
|
|
};
|
|
/**
|
|
* # Handle Grants for Users
|
|
*/
|
|
export default function handleGrants({ username, host, grants, userId, }: Param): Promise<boolean>;
|
|
export {};
|