Major version update. Major bugfixes. Security vulnerabilites fixed
This commit is contained in:
Vendored
+8
-3
@@ -6,15 +6,20 @@ type Params = {
|
||||
queryObj: ServerQueryObject<{
|
||||
[key: string]: any;
|
||||
}, string>;
|
||||
/**
|
||||
* `value` is an already-validated `table.field` reference rather than a
|
||||
* literal, so it is inlined instead of bound
|
||||
*/
|
||||
isValueFieldValue?: boolean;
|
||||
};
|
||||
type Return = {
|
||||
str?: string;
|
||||
param?: SQLInsertGenValueType;
|
||||
str: string;
|
||||
params: SQLInsertGenValueType[];
|
||||
};
|
||||
/**
|
||||
* # SQL Gen Operator Gen
|
||||
* @description Generates an SQL operator for node module `mysql` or `serverless-mysql`
|
||||
* @description Generates an SQL condition for a single field. Literal values
|
||||
* are always returned in `params` to be bound, never inlined.
|
||||
*/
|
||||
export default function sqlGenOperatorGen({ fieldName, value, equality, queryObj, isValueFieldValue, }: Params): Return;
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user