@balena/abstract-sql-compiler
Advanced tools
Comparing version 9.2.1-build-renovate-major-8--balenasbvr-types-07454b79cc72951528781ebba4eaf15b8fe03543-1 to 9.2.1-build-renovate-major-9--balenasbvr-types-e797282c058826c1e4ebb4720dc2478350daae4d-1
@@ -7,8 +7,16 @@ # Change Log | ||
## 9.2.1 - 2024-06-19 | ||
## 9.2.1 - 2024-08-08 | ||
<details> | ||
<summary> Update dependency @balena/sbvr-types to v8 [Self-hosted Renovate Bot] </summary> | ||
<summary> Update dependency @balena/sbvr-types to v9 [Self-hosted Renovate Bot] </summary> | ||
> ### sbvr-types-9.0.1 - 2024-08-05 | ||
> | ||
> * Update @balena/lint to v8.2.7 [Josh Bowling] | ||
> | ||
> ### sbvr-types-9.0.0 - 2024-08-02 | ||
> | ||
> * Update BigInteger and BigSerial TsTypes [Josh Bowling] | ||
> | ||
> ### sbvr-types-8.0.0 - 2024-06-12 | ||
@@ -15,0 +23,0 @@ > |
@@ -388,3 +388,3 @@ export declare const enum Engines { | ||
compileRule: (abstractSQL: AbstractSqlQuery) => SqlResult | [SqlResult, SqlResult]; | ||
dataTypeValidate: (value: any, field: Pick<AbstractSqlField, 'dataType' | 'required'>) => Promise<any>; | ||
dataTypeValidate: (value: any, field: Pick<AbstractSqlField, "dataType" | "required">) => Promise<any>; | ||
getReferencedFields: (ruleBody: AbstractSqlQuery) => ReferencedFields; | ||
@@ -399,3 +399,3 @@ getRuleReferencedFields: (ruleBody: AbstractSqlQuery) => RuleReferencedFields; | ||
compileRule: (abstractSQL: AbstractSqlQuery) => SqlResult | [SqlResult, SqlResult]; | ||
dataTypeValidate: (value: any, field: Pick<AbstractSqlField, 'dataType' | 'required'>) => Promise<any>; | ||
dataTypeValidate: (value: any, field: Pick<AbstractSqlField, "dataType" | "required">) => Promise<any>; | ||
getReferencedFields: (ruleBody: AbstractSqlQuery) => ReferencedFields; | ||
@@ -410,3 +410,3 @@ getRuleReferencedFields: (ruleBody: AbstractSqlQuery) => RuleReferencedFields; | ||
compileRule: (abstractSQL: AbstractSqlQuery) => SqlResult | [SqlResult, SqlResult]; | ||
dataTypeValidate: (value: any, field: Pick<AbstractSqlField, 'dataType' | 'required'>) => Promise<any>; | ||
dataTypeValidate: (value: any, field: Pick<AbstractSqlField, "dataType" | "required">) => Promise<any>; | ||
getReferencedFields: (ruleBody: AbstractSqlQuery) => ReferencedFields; | ||
@@ -413,0 +413,0 @@ getRuleReferencedFields: (ruleBody: AbstractSqlQuery) => RuleReferencedFields; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.websql = exports.mysql = exports.postgres = exports.compileRule = exports.isWhereNode = exports.isSelectNode = exports.isSelectQueryNode = exports.isResourceNode = exports.isTableNode = exports.isFromNode = exports.isAliasNode = exports.Engines = void 0; | ||
exports.websql = exports.mysql = exports.postgres = exports.isWhereNode = exports.isSelectNode = exports.isSelectQueryNode = exports.isResourceNode = exports.isTableNode = exports.isFromNode = exports.isAliasNode = exports.Engines = void 0; | ||
exports.compileRule = compileRule; | ||
var Engines; | ||
@@ -95,3 +96,2 @@ (function (Engines) { | ||
} | ||
exports.compileRule = compileRule; | ||
const compileSchema = (abstractSqlModel, engine, ifNotExists) => { | ||
@@ -98,0 +98,0 @@ abstractSqlModel = (0, AbstractSQLSchemaOptimiser_1.optimizeSchema)(abstractSqlModel, false); |
@@ -1,2 +0,2 @@ | ||
import type { AbstractSqlQuery, AbstractSqlType, InsertQueryNode, SelectQueryNode, UnionQueryNode, UpdateQueryNode, DeleteQueryNode, UpsertQueryNode } from './AbstractSQLCompiler'; | ||
import type { AbstractSqlQuery, AbstractSqlType, InsertQueryNode, SelectQueryNode, UnionQueryNode, UpdateQueryNode, DeleteQueryNode, UpsertQueryNode, StrictTextTypeNodes, StrictNumberTypeNodes, StrictBooleanTypeNodes, StrictDateTypeNodes, StrictDurationTypeNodes, StrictTextArrayTypeNodes, StrictJSONTypeNodes } from './AbstractSQLCompiler'; | ||
import { Engines } from './AbstractSQLCompiler'; | ||
@@ -17,9 +17,9 @@ export type Binding = [string, any] | ['Bind', number | string | [string, string]]; | ||
}; | ||
export declare const isTextValue: (type: unknown) => type is "Text" | "EmbeddedText" | "Concatenate" | "ConcatenateWithSeparator" | "Lower" | "Upper" | "Trim" | "Substring" | "Right" | "Replace" | "ExtractJSONPathAsText" | "EscapeForLike"; | ||
export declare const isNumericValue: (type: unknown) => type is "Number" | "Integer" | "Real" | "Add" | "Subtract" | "Multiply" | "Divide" | "StrPos" | "Year" | "Month" | "Day" | "Hour" | "Minute" | "Second" | "Fractionalseconds" | "Totalseconds" | "Round" | "Floor" | "Ceiling" | "Count" | "Average" | "Sum" | "BitwiseAnd" | "BitwiseShiftRight" | "CharacterLength" | "SubtractDateDate"; | ||
export declare const isBooleanValue: (type: unknown) => type is "Boolean" | "Equals" | "NotEquals" | "IsDistinctFrom" | "IsNotDistinctFrom" | "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual" | "Between" | "Like" | "In" | "NotIn" | "Exists" | "NotExists" | "Not" | "And" | "Or" | "StartsWith" | "EndsWith" | "Contains"; | ||
export declare const isDateValue: (type: unknown) => type is "Date" | "ToDate" | "ToTime" | "CurrentTimestamp" | "CurrentDate" | "DateTrunc" | "SubtractDateNumber" | "SubtractDateDuration" | "AddDateNumber" | "AddDateDuration"; | ||
export declare const isArrayValue: (type: unknown) => type is "TextArray"; | ||
export declare const isJSONValue: (type: unknown) => type is "AggregateJSON" | "ToJSON"; | ||
export declare const isDurationValue: (type: unknown) => type is "Duration"; | ||
export declare const isTextValue: (type: unknown) => type is StrictTextTypeNodes[0]; | ||
export declare const isNumericValue: (type: unknown) => type is StrictNumberTypeNodes[0]; | ||
export declare const isBooleanValue: (type: unknown) => type is StrictBooleanTypeNodes[0]; | ||
export declare const isDateValue: (type: unknown) => type is StrictDateTypeNodes[0]; | ||
export declare const isArrayValue: (type: unknown) => type is StrictTextArrayTypeNodes[0]; | ||
export declare const isJSONValue: (type: unknown) => type is StrictJSONTypeNodes[0]; | ||
export declare const isDurationValue: (type: unknown) => type is StrictDurationTypeNodes[0]; | ||
export declare const isFieldValue: (type: unknown) => type is "Field" | "ReferencedField"; | ||
@@ -26,0 +26,0 @@ export declare const isNotNullable: (node: AbstractSqlType) => boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AbstractSQLRules2SQL = exports.checkMinArgs = exports.checkArgs = exports.getAbstractSqlQuery = exports.isAbstractSqlQuery = exports.isNotNullable = exports.isFieldValue = exports.isDurationValue = exports.isJSONValue = exports.isArrayValue = exports.isDateValue = exports.isBooleanValue = exports.isNumericValue = exports.isTextValue = exports.comparisons = void 0; | ||
exports.checkMinArgs = exports.checkArgs = exports.getAbstractSqlQuery = exports.isAbstractSqlQuery = exports.isNotNullable = exports.isFieldValue = exports.isDurationValue = exports.isJSONValue = exports.isArrayValue = exports.isDateValue = exports.isBooleanValue = exports.isNumericValue = exports.isTextValue = exports.comparisons = void 0; | ||
exports.AbstractSQLRules2SQL = AbstractSQLRules2SQL; | ||
const _ = require("lodash"); | ||
@@ -1435,3 +1436,2 @@ const sbvr_types_1 = require("@balena/sbvr-types"); | ||
} | ||
exports.AbstractSQLRules2SQL = AbstractSQLRules2SQL; | ||
//# sourceMappingURL=AbstractSQLRules2SQL.js.map |
{ | ||
"name": "@balena/abstract-sql-compiler", | ||
"version": "9.2.1-build-renovate-major-8--balenasbvr-types-07454b79cc72951528781ebba4eaf15b8fe03543-1", | ||
"version": "9.2.1-build-renovate-major-9--balenasbvr-types-e797282c058826c1e4ebb4720dc2478350daae4d-1", | ||
"description": "A translator for abstract sql into sql.", | ||
@@ -19,3 +19,3 @@ "main": "out/AbstractSQLCompiler.js", | ||
"dependencies": { | ||
"@balena/sbvr-types": "^8.0.0", | ||
"@balena/sbvr-types": "^9.0.0", | ||
"lodash": "^4.17.21" | ||
@@ -65,4 +65,4 @@ }, | ||
"versionist": { | ||
"publishedAt": "2024-06-19T14:44:33.463Z" | ||
"publishedAt": "2024-08-08T08:45:00.168Z" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
851703
17932
+ Added@balena/sbvr-types@9.1.0(transitive)
- Removed@balena/sbvr-types@8.0.0(transitive)
Updated@balena/sbvr-types@^9.0.0