Comparing version 1.0.2 to 1.1.0
@@ -7,2 +7,6 @@ # Changelog | ||
## [1.2.0] - 2024-08-12 | ||
- Add support for `raw` in values (previously, it was only supported by `$select` and `$where` operators). Allows safe use of any SQL query/clause as the value in an insert or update operation that shouldn't be automatically escaped by the ORM. | ||
## [1.1.0] - 2024-08-11 | ||
@@ -9,0 +13,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"type": "module", | ||
@@ -9,0 +9,0 @@ "main": "./index.js", |
@@ -1,2 +0,8 @@ | ||
import { QueryRaw, QueryRawFn, Scalar } from '../type/index.js'; | ||
export declare function raw(value: Scalar | QueryRawFn, alias?: string): QueryRaw; | ||
import { QueryRawFn, Scalar } from '../type/index.js'; | ||
/** | ||
* Allow using any raw value that shouldn't be automatically escaped by the ORM. | ||
* @param value the raw value | ||
* @param alias optional alias | ||
* @returns a QueryRaw instance | ||
*/ | ||
export declare function raw(value: Scalar | QueryRawFn, alias?: string): any; |
import { QueryRaw } from '../type/index.js'; | ||
/** | ||
* Allow using any raw value that shouldn't be automatically escaped by the ORM. | ||
* @param value the raw value | ||
* @param alias optional alias | ||
* @returns a QueryRaw instance | ||
*/ | ||
export function raw(value, alias) { | ||
return new QueryRaw(value, alias); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF3LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3V0aWwvcmF3LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQXNCLE1BQU0sa0JBQWtCLENBQUM7QUFFaEUsTUFBTSxVQUFVLEdBQUcsQ0FBQyxLQUEwQixFQUFFLEtBQWM7SUFDNUQsT0FBTyxJQUFJLFFBQVEsQ0FBQyxLQUFLLEVBQUUsS0FBSyxDQUFDLENBQUM7QUFDcEMsQ0FBQ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mFsdWU6IFNjYWxhciB8IFF1ZXJ5UmF3Rm4sIGFsaWFzPzogc3RyaW5nKTogYW55IHtcbiAgcmV0dXJuIG5ldyBRdWVyeVJhdyh2YWx1ZSwgYWxpYXMpO1xufVxuIl19 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
294351
2423