16 lines
369 B
TypeScript
16 lines
369 B
TypeScript
import type { BunMariaDBConfig, DBResponseObject } from "../types";
|
|
type Param = {
|
|
query: string;
|
|
values?: any[];
|
|
config?: BunMariaDBConfig;
|
|
};
|
|
/**
|
|
* # Main DB Handler Function
|
|
*/
|
|
export default function dbHandler<T extends {
|
|
[k: string]: any;
|
|
} = {
|
|
[k: string]: any;
|
|
}>({ query, values, config }: Param): Promise<DBResponseObject<T>>;
|
|
export {};
|