11 lines
465 B
TypeScript
11 lines
465 B
TypeScript
import sqlGenerator from "../../functions/dsql/sql/sql-generator";
|
|
import { DsqlCrudParam, PostReturn } from "../../types";
|
|
export default function dsqlCrud<T extends {
|
|
[key: string]: any;
|
|
} = {
|
|
[key: string]: any;
|
|
}>({ action, data, table, targetValue, query, sanitize, debug, targetField, targetId, count, countOnly, }: DsqlCrudParam<T>): Promise<(PostReturn & {
|
|
queryObject?: ReturnType<Awaited<typeof sqlGenerator>>;
|
|
count?: number;
|
|
}) | null>;
|