8 lines
500 B
TypeScript
8 lines
500 B
TypeScript
import { AddDbEntryParam, APIResponseObject, PostInsertReturn } from "../../../types";
|
|
/**
|
|
* Add a db Entry Function
|
|
*/
|
|
export default function addDbEntry<T extends {
|
|
[k: string]: any;
|
|
} = any, K extends string = string>({ dbContext, paradigm, dbFullName, tableName, data, batchData, tableSchema, duplicateColumnName, duplicateColumnValue, update, encryptionKey, encryptionSalt, forceLocal, debug, dbConfig, onDuplicate, }: AddDbEntryParam<T, K>): Promise<APIResponseObject<PostInsertReturn>>;
|