datasquirel/dist/package-shared/functions/backend/dbHandler.d.ts
Benjamin Toby eb98148533 Updates
2025-08-05 15:27:07 +01:00

21 lines
586 B
TypeScript

import { DSQL_TableSchemaType } from "../../types";
import { ConnectionConfig } from "mariadb";
type Param = {
query: string;
values?: string[] | object;
noErrorLogs?: boolean;
database?: string;
tableSchema?: DSQL_TableSchemaType;
config?: ConnectionConfig;
};
/**
* # Main DB Handler Function
* @requires DSQL_DB_CONN - Gobal Variable for Datasquirel Database
*/
export default function dbHandler<T extends {
[k: string]: any;
} = {
[k: string]: any;
}>({ query, values, noErrorLogs, database, config, }: Param): Promise<T[] | T | null>;
export {};