@blazedpath/commons 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/blz-base/health/index.d.ts +1 -0
- package/dist/blz-base/health/index.js +1 -0
- package/dist/blz-base/index.d.ts +108 -0
- package/dist/blz-base/index.js +1 -0
- package/dist/blz-cache/LruCache.d.ts +31 -0
- package/dist/blz-cache/LruCache.js +1 -0
- package/dist/blz-cache/index.d.ts +2 -0
- package/dist/blz-cache/index.js +1 -0
- package/dist/blz-config/index.d.ts +16 -0
- package/dist/blz-config/index.js +1 -0
- package/dist/blz-core/index.d.ts +32 -0
- package/dist/blz-core/index.js +1 -0
- package/dist/blz-cryptography/index.d.ts +2 -0
- package/dist/blz-cryptography/index.js +1 -0
- package/dist/blz-datetimes/index.d.ts +35 -0
- package/dist/blz-datetimes/index.js +1 -0
- package/dist/blz-file/fileService.d.ts +25 -0
- package/dist/blz-file/fileService.js +1 -0
- package/dist/blz-file/index.d.ts +2 -0
- package/dist/blz-file/index.js +1 -0
- package/dist/blz-file/index.test.js +1 -0
- package/dist/blz-file/lab.js +1 -0
- package/dist/blz-hazelcast/index.d.ts +25 -0
- package/dist/blz-hazelcast/index.js +1 -0
- package/dist/blz-hazelcast/lib/credentials.d.ts +10 -0
- package/dist/blz-hazelcast/lib/credentials.js +1 -0
- package/dist/blz-hazelcast/lib/credentialsFactory.d.ts +1 -0
- package/dist/blz-hazelcast/lib/credentialsFactory.js +1 -0
- package/dist/blz-hazelcast/lib/hazelcastCache.d.ts +27 -0
- package/dist/blz-hazelcast/lib/hazelcastCache.js +1 -0
- package/dist/blz-iterable/index.d.ts +49 -0
- package/dist/blz-iterable/index.js +1 -0
- package/dist/blz-json-schema/index.d.ts +1 -0
- package/dist/blz-json-schema/index.js +1 -0
- package/dist/blz-jwt/index.d.ts +12 -0
- package/dist/blz-jwt/index.js +1 -0
- package/dist/blz-kafka/index.d.ts +9 -0
- package/dist/blz-kafka/index.js +1 -0
- package/dist/blz-math/index.d.ts +22 -0
- package/dist/blz-math/index.js +1 -0
- package/dist/blz-mongodb/index.d.ts +28 -0
- package/dist/blz-mongodb/index.js +1 -0
- package/dist/blz-rds/__test__/scape.test.js +1 -0
- package/dist/blz-rds/blz-rds-executor.d.ts +4 -0
- package/dist/blz-rds/blz-rds-executor.js +1 -0
- package/dist/blz-rds/blz-rds-helper.d.ts +5 -0
- package/dist/blz-rds/blz-rds-helper.js +1 -0
- package/dist/blz-rds/commands/core/add.d.ts +2 -0
- package/dist/blz-rds/commands/core/add.js +1 -0
- package/dist/blz-rds/commands/core/and.d.ts +3 -0
- package/dist/blz-rds/commands/core/and.js +1 -0
- package/dist/blz-rds/commands/core/asc.d.ts +2 -0
- package/dist/blz-rds/commands/core/asc.js +1 -0
- package/dist/blz-rds/commands/core/avg.d.ts +2 -0
- package/dist/blz-rds/commands/core/avg.js +1 -0
- package/dist/blz-rds/commands/core/column-ref.d.ts +2 -0
- package/dist/blz-rds/commands/core/column-ref.js +1 -0
- package/dist/blz-rds/commands/core/count-distinct.d.ts +2 -0
- package/dist/blz-rds/commands/core/count-distinct.js +1 -0
- package/dist/blz-rds/commands/core/count.d.ts +2 -0
- package/dist/blz-rds/commands/core/count.js +1 -0
- package/dist/blz-rds/commands/core/decimal.d.ts +2 -0
- package/dist/blz-rds/commands/core/decimal.js +1 -0
- package/dist/blz-rds/commands/core/desc.d.ts +2 -0
- package/dist/blz-rds/commands/core/desc.js +1 -0
- package/dist/blz-rds/commands/core/distinct.d.ts +2 -0
- package/dist/blz-rds/commands/core/distinct.js +1 -0
- package/dist/blz-rds/commands/core/divide.d.ts +2 -0
- package/dist/blz-rds/commands/core/divide.js +1 -0
- package/dist/blz-rds/commands/core/embedded-exists.d.ts +3 -0
- package/dist/blz-rds/commands/core/embedded-exists.js +1 -0
- package/dist/blz-rds/commands/core/embedded-select.d.ts +2 -0
- package/dist/blz-rds/commands/core/embedded-select.js +1 -0
- package/dist/blz-rds/commands/core/equals.d.ts +3 -0
- package/dist/blz-rds/commands/core/equals.js +1 -0
- package/dist/blz-rds/commands/core/false.d.ts +2 -0
- package/dist/blz-rds/commands/core/false.js +1 -0
- package/dist/blz-rds/commands/core/greater-or-equal.d.ts +3 -0
- package/dist/blz-rds/commands/core/greater-or-equal.js +1 -0
- package/dist/blz-rds/commands/core/greater.d.ts +3 -0
- package/dist/blz-rds/commands/core/greater.js +1 -0
- package/dist/blz-rds/commands/core/in.d.ts +3 -0
- package/dist/blz-rds/commands/core/in.js +1 -0
- package/dist/blz-rds/commands/core/integer.d.ts +2 -0
- package/dist/blz-rds/commands/core/integer.js +1 -0
- package/dist/blz-rds/commands/core/is-not-null.d.ts +3 -0
- package/dist/blz-rds/commands/core/is-not-null.js +1 -0
- package/dist/blz-rds/commands/core/is-null-or-value.d.ts +3 -0
- package/dist/blz-rds/commands/core/is-null-or-value.js +1 -0
- package/dist/blz-rds/commands/core/is-null.d.ts +3 -0
- package/dist/blz-rds/commands/core/is-null.js +1 -0
- package/dist/blz-rds/commands/core/less-or-equal.d.ts +3 -0
- package/dist/blz-rds/commands/core/less-or-equal.js +1 -0
- package/dist/blz-rds/commands/core/less-unary.d.ts +2 -0
- package/dist/blz-rds/commands/core/less-unary.js +1 -0
- package/dist/blz-rds/commands/core/less.d.ts +3 -0
- package/dist/blz-rds/commands/core/less.js +1 -0
- package/dist/blz-rds/commands/core/like.d.ts +3 -0
- package/dist/blz-rds/commands/core/like.js +1 -0
- package/dist/blz-rds/commands/core/max.d.ts +2 -0
- package/dist/blz-rds/commands/core/max.js +1 -0
- package/dist/blz-rds/commands/core/min.d.ts +2 -0
- package/dist/blz-rds/commands/core/min.js +1 -0
- package/dist/blz-rds/commands/core/multiply.d.ts +2 -0
- package/dist/blz-rds/commands/core/multiply.js +1 -0
- package/dist/blz-rds/commands/core/not-equals.d.ts +3 -0
- package/dist/blz-rds/commands/core/not-equals.js +1 -0
- package/dist/blz-rds/commands/core/not-in.d.ts +3 -0
- package/dist/blz-rds/commands/core/not-in.js +1 -0
- package/dist/blz-rds/commands/core/not.d.ts +3 -0
- package/dist/blz-rds/commands/core/not.js +1 -0
- package/dist/blz-rds/commands/core/null.d.ts +2 -0
- package/dist/blz-rds/commands/core/null.js +1 -0
- package/dist/blz-rds/commands/core/nvl.d.ts +2 -0
- package/dist/blz-rds/commands/core/nvl.js +1 -0
- package/dist/blz-rds/commands/core/or.d.ts +3 -0
- package/dist/blz-rds/commands/core/or.js +1 -0
- package/dist/blz-rds/commands/core/parameter.d.ts +2 -0
- package/dist/blz-rds/commands/core/parameter.js +1 -0
- package/dist/blz-rds/commands/core/remainder.d.ts +2 -0
- package/dist/blz-rds/commands/core/remainder.js +1 -0
- package/dist/blz-rds/commands/core/string.d.ts +2 -0
- package/dist/blz-rds/commands/core/string.js +1 -0
- package/dist/blz-rds/commands/core/subtract.d.ts +2 -0
- package/dist/blz-rds/commands/core/subtract.js +1 -0
- package/dist/blz-rds/commands/core/sum.d.ts +2 -0
- package/dist/blz-rds/commands/core/sum.js +1 -0
- package/dist/blz-rds/commands/core/true.d.ts +2 -0
- package/dist/blz-rds/commands/core/true.js +1 -0
- package/dist/blz-rds/commands/core/tuple.d.ts +2 -0
- package/dist/blz-rds/commands/core/tuple.js +1 -0
- package/dist/blz-rds/commands/datetimes/add-days.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/add-days.js +1 -0
- package/dist/blz-rds/commands/datetimes/add-hours.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/add-hours.js +1 -0
- package/dist/blz-rds/commands/datetimes/add-milliseconds.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/add-milliseconds.js +1 -0
- package/dist/blz-rds/commands/datetimes/add-minutes.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/add-minutes.js +1 -0
- package/dist/blz-rds/commands/datetimes/add-months.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/add-months.js +1 -0
- package/dist/blz-rds/commands/datetimes/add-seconds.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/add-seconds.js +1 -0
- package/dist/blz-rds/commands/datetimes/add-years.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/add-years.js +1 -0
- package/dist/blz-rds/commands/datetimes/date-diff.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/date-diff.js +1 -0
- package/dist/blz-rds/commands/datetimes/date.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/date.js +1 -0
- package/dist/blz-rds/commands/datetimes/datetime-diff.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/datetime-diff.js +1 -0
- package/dist/blz-rds/commands/datetimes/datetime.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/datetime.js +1 -0
- package/dist/blz-rds/commands/datetimes/day.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/day.js +1 -0
- package/dist/blz-rds/commands/datetimes/hour.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/hour.js +1 -0
- package/dist/blz-rds/commands/datetimes/millisecond.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/millisecond.js +1 -0
- package/dist/blz-rds/commands/datetimes/minute.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/minute.js +1 -0
- package/dist/blz-rds/commands/datetimes/month-text.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/month-text.js +1 -0
- package/dist/blz-rds/commands/datetimes/month.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/month.js +1 -0
- package/dist/blz-rds/commands/datetimes/now.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/now.js +1 -0
- package/dist/blz-rds/commands/datetimes/second.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/second.js +1 -0
- package/dist/blz-rds/commands/datetimes/subtract-days.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/subtract-days.js +1 -0
- package/dist/blz-rds/commands/datetimes/subtract-hours.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/subtract-hours.js +1 -0
- package/dist/blz-rds/commands/datetimes/subtract-milliseconds.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/subtract-milliseconds.js +1 -0
- package/dist/blz-rds/commands/datetimes/subtract-minutes.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/subtract-minutes.js +1 -0
- package/dist/blz-rds/commands/datetimes/subtract-seconds.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/subtract-seconds.js +1 -0
- package/dist/blz-rds/commands/datetimes/time-diff.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/time-diff.js +1 -0
- package/dist/blz-rds/commands/datetimes/time.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/time.js +1 -0
- package/dist/blz-rds/commands/datetimes/today.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/today.js +1 -0
- package/dist/blz-rds/commands/datetimes/week-day-text.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/week-day-text.js +1 -0
- package/dist/blz-rds/commands/datetimes/week-day.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/week-day.js +1 -0
- package/dist/blz-rds/commands/datetimes/week.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/week.js +1 -0
- package/dist/blz-rds/commands/datetimes/year.d.ts +2 -0
- package/dist/blz-rds/commands/datetimes/year.js +1 -0
- package/dist/blz-rds/commands/math/abs.d.ts +2 -0
- package/dist/blz-rds/commands/math/abs.js +1 -0
- package/dist/blz-rds/commands/math/acos.d.ts +2 -0
- package/dist/blz-rds/commands/math/acos.js +1 -0
- package/dist/blz-rds/commands/math/asin.d.ts +2 -0
- package/dist/blz-rds/commands/math/asin.js +1 -0
- package/dist/blz-rds/commands/math/atan.d.ts +2 -0
- package/dist/blz-rds/commands/math/atan.js +1 -0
- package/dist/blz-rds/commands/math/atan2.d.ts +2 -0
- package/dist/blz-rds/commands/math/atan2.js +1 -0
- package/dist/blz-rds/commands/math/ceil.d.ts +2 -0
- package/dist/blz-rds/commands/math/ceil.js +1 -0
- package/dist/blz-rds/commands/math/cos.d.ts +2 -0
- package/dist/blz-rds/commands/math/cos.js +1 -0
- package/dist/blz-rds/commands/math/cosh.d.ts +2 -0
- package/dist/blz-rds/commands/math/cosh.js +1 -0
- package/dist/blz-rds/commands/math/exp.d.ts +2 -0
- package/dist/blz-rds/commands/math/exp.js +1 -0
- package/dist/blz-rds/commands/math/floor.d.ts +2 -0
- package/dist/blz-rds/commands/math/floor.js +1 -0
- package/dist/blz-rds/commands/math/log.d.ts +2 -0
- package/dist/blz-rds/commands/math/log.js +1 -0
- package/dist/blz-rds/commands/math/log10.d.ts +2 -0
- package/dist/blz-rds/commands/math/log10.js +1 -0
- package/dist/blz-rds/commands/math/pow.d.ts +2 -0
- package/dist/blz-rds/commands/math/pow.js +1 -0
- package/dist/blz-rds/commands/math/random.d.ts +2 -0
- package/dist/blz-rds/commands/math/random.js +1 -0
- package/dist/blz-rds/commands/math/round.d.ts +2 -0
- package/dist/blz-rds/commands/math/round.js +1 -0
- package/dist/blz-rds/commands/math/sign.d.ts +2 -0
- package/dist/blz-rds/commands/math/sign.js +1 -0
- package/dist/blz-rds/commands/math/sin.d.ts +2 -0
- package/dist/blz-rds/commands/math/sin.js +1 -0
- package/dist/blz-rds/commands/math/sinh.d.ts +2 -0
- package/dist/blz-rds/commands/math/sinh.js +1 -0
- package/dist/blz-rds/commands/math/sqrt.d.ts +2 -0
- package/dist/blz-rds/commands/math/sqrt.js +1 -0
- package/dist/blz-rds/commands/math/tan.d.ts +2 -0
- package/dist/blz-rds/commands/math/tan.js +1 -0
- package/dist/blz-rds/commands/math/tanh.d.ts +2 -0
- package/dist/blz-rds/commands/math/tanh.js +1 -0
- package/dist/blz-rds/commands/math/trunc.d.ts +2 -0
- package/dist/blz-rds/commands/math/trunc.js +1 -0
- package/dist/blz-rds/commands/strings/concat.d.ts +2 -0
- package/dist/blz-rds/commands/strings/concat.js +1 -0
- package/dist/blz-rds/commands/strings/contains.d.ts +3 -0
- package/dist/blz-rds/commands/strings/contains.js +1 -0
- package/dist/blz-rds/commands/strings/ends-with.d.ts +3 -0
- package/dist/blz-rds/commands/strings/ends-with.js +1 -0
- package/dist/blz-rds/commands/strings/index-of.d.ts +2 -0
- package/dist/blz-rds/commands/strings/index-of.js +1 -0
- package/dist/blz-rds/commands/strings/is-null-or-empty.d.ts +3 -0
- package/dist/blz-rds/commands/strings/is-null-or-empty.js +1 -0
- package/dist/blz-rds/commands/strings/is-null-or-white-space.d.ts +3 -0
- package/dist/blz-rds/commands/strings/is-null-or-white-space.js +1 -0
- package/dist/blz-rds/commands/strings/join.d.ts +2 -0
- package/dist/blz-rds/commands/strings/join.js +1 -0
- package/dist/blz-rds/commands/strings/last-index-of.d.ts +2 -0
- package/dist/blz-rds/commands/strings/last-index-of.js +1 -0
- package/dist/blz-rds/commands/strings/length.d.ts +2 -0
- package/dist/blz-rds/commands/strings/length.js +1 -0
- package/dist/blz-rds/commands/strings/pad-left.d.ts +2 -0
- package/dist/blz-rds/commands/strings/pad-left.js +1 -0
- package/dist/blz-rds/commands/strings/pad-right.d.ts +2 -0
- package/dist/blz-rds/commands/strings/pad-right.js +1 -0
- package/dist/blz-rds/commands/strings/replace.d.ts +2 -0
- package/dist/blz-rds/commands/strings/replace.js +1 -0
- package/dist/blz-rds/commands/strings/starts-with.d.ts +3 -0
- package/dist/blz-rds/commands/strings/starts-with.js +1 -0
- package/dist/blz-rds/commands/strings/substring.d.ts +2 -0
- package/dist/blz-rds/commands/strings/substring.js +1 -0
- package/dist/blz-rds/commands/strings/to-lower.d.ts +2 -0
- package/dist/blz-rds/commands/strings/to-lower.js +1 -0
- package/dist/blz-rds/commands/strings/to-upper.d.ts +2 -0
- package/dist/blz-rds/commands/strings/to-upper.js +1 -0
- package/dist/blz-rds/commands/strings/trim-end.d.ts +2 -0
- package/dist/blz-rds/commands/strings/trim-end.js +1 -0
- package/dist/blz-rds/commands/strings/trim-start.d.ts +2 -0
- package/dist/blz-rds/commands/strings/trim-start.js +1 -0
- package/dist/blz-rds/commands/strings/trim.d.ts +2 -0
- package/dist/blz-rds/commands/strings/trim.js +1 -0
- package/dist/blz-rds/index.d.ts +53 -0
- package/dist/blz-rds/index.js +1 -0
- package/dist/blz-rds-mysql/base.d.ts +83 -0
- package/dist/blz-rds-mysql/base.js +1 -0
- package/dist/blz-rds-mysql/connection-manager.d.ts +8 -0
- package/dist/blz-rds-mysql/connection-manager.js +1 -0
- package/dist/blz-rds-mysql/execute-bulk-insert.d.ts +2 -0
- package/dist/blz-rds-mysql/execute-bulk-insert.js +1 -0
- package/dist/blz-rds-mysql/execute-bulk-merge.d.ts +2 -0
- package/dist/blz-rds-mysql/execute-bulk-merge.js +1 -0
- package/dist/blz-rds-mysql/execute-non-query.d.ts +14 -0
- package/dist/blz-rds-mysql/execute-non-query.js +1 -0
- package/dist/blz-rds-mysql/execute-query.d.ts +11 -0
- package/dist/blz-rds-mysql/execute-query.js +1 -0
- package/dist/blz-rds-mysql/index.d.ts +9 -0
- package/dist/blz-rds-mysql/index.js +1 -0
- package/dist/blz-rds-mysql/stored-procedure.d.ts +19 -0
- package/dist/blz-rds-mysql/stored-procedure.js +1 -0
- package/dist/blz-rds-mysqlx/base.d.ts +83 -0
- package/dist/blz-rds-mysqlx/base.js +1 -0
- package/dist/blz-rds-mysqlx/connection-manager.d.ts +6 -0
- package/dist/blz-rds-mysqlx/connection-manager.js +1 -0
- package/dist/blz-rds-mysqlx/execute-bulk-insert.d.ts +2 -0
- package/dist/blz-rds-mysqlx/execute-bulk-insert.js +1 -0
- package/dist/blz-rds-mysqlx/execute-bulk-merge.d.ts +2 -0
- package/dist/blz-rds-mysqlx/execute-bulk-merge.js +1 -0
- package/dist/blz-rds-mysqlx/execute-non-query.d.ts +4 -0
- package/dist/blz-rds-mysqlx/execute-non-query.js +1 -0
- package/dist/blz-rds-mysqlx/execute-query.d.ts +7 -0
- package/dist/blz-rds-mysqlx/execute-query.js +1 -0
- package/dist/blz-rds-mysqlx/index.d.ts +9 -0
- package/dist/blz-rds-mysqlx/index.js +1 -0
- package/dist/blz-rds-mysqlx/stored-procedure.d.ts +20 -0
- package/dist/blz-rds-mysqlx/stored-procedure.js +1 -0
- package/dist/blz-rds-oracle/index.d.ts +25 -0
- package/dist/blz-rds-oracle/index.js +1 -0
- package/dist/blz-rds-postgres/base.d.ts +94 -0
- package/dist/blz-rds-postgres/base.js +1 -0
- package/dist/blz-rds-postgres/connection-manager.d.ts +6 -0
- package/dist/blz-rds-postgres/connection-manager.js +1 -0
- package/dist/blz-rds-postgres/execute-bulk-insert.d.ts +5 -0
- package/dist/blz-rds-postgres/execute-bulk-insert.js +1 -0
- package/dist/blz-rds-postgres/execute-bulk-merge.d.ts +4 -0
- package/dist/blz-rds-postgres/execute-bulk-merge.js +1 -0
- package/dist/blz-rds-postgres/execute-non-query.d.ts +12 -0
- package/dist/blz-rds-postgres/execute-non-query.js +1 -0
- package/dist/blz-rds-postgres/execute-query.d.ts +4 -0
- package/dist/blz-rds-postgres/execute-query.js +1 -0
- package/dist/blz-rds-postgres/index.d.ts +9 -0
- package/dist/blz-rds-postgres/index.js +1 -0
- package/dist/blz-rds-postgres/result-set.js +1 -0
- package/dist/blz-rds-postgres/stored-procedure.d.ts +19 -0
- package/dist/blz-rds-postgres/stored-procedure.js +1 -0
- package/dist/blz-redis/index.d.ts +31 -0
- package/dist/blz-redis/index.js +1 -0
- package/dist/blz-redis/lib/redisCache.d.ts +33 -0
- package/dist/blz-redis/lib/redisCache.js +1 -0
- package/dist/blz-regex/index.d.ts +3 -0
- package/dist/blz-regex/index.js +1 -0
- package/dist/blz-security/__test__/autorization.test.js +1 -0
- package/dist/blz-security/__test__/autorizationKpn.test.js +1 -0
- package/dist/blz-security/__test__/orderManagement.test.js +1 -0
- package/dist/blz-security/__test__/secureUrl.test.js +1 -0
- package/dist/blz-security/__test__/solveMergeRule.test.js +1 -0
- package/dist/blz-security/__test__/sqlInjectionGuard.test.js +1 -0
- package/dist/blz-security/__test__/xssGuard.test.js +1 -0
- package/dist/blz-security/authorizationService.d.ts +42 -0
- package/dist/blz-security/authorizationService.js +2 -0
- package/dist/blz-security/config/global.js +1 -0
- package/dist/blz-security/filescanner/index.d.ts +24 -0
- package/dist/blz-security/filescanner/index.js +1 -0
- package/dist/blz-security/helpers/consts.d.ts +28 -0
- package/dist/blz-security/helpers/consts.js +1 -0
- package/dist/blz-security/helpers/utils.d.ts +82 -0
- package/dist/blz-security/helpers/utils.js +1 -0
- package/dist/blz-security/implementations/cache.d.ts +58 -0
- package/dist/blz-security/implementations/cache.js +1 -0
- package/dist/blz-security/implementations/oidc.d.ts +100 -0
- package/dist/blz-security/implementations/oidc.js +1 -0
- package/dist/blz-security/implementations/pkceCacheStore.d.ts +2 -0
- package/dist/blz-security/implementations/pkceCacheStore.js +1 -0
- package/dist/blz-security/implementations/saml.js +1 -0
- package/dist/blz-security/implementations/uma.d.ts +31 -0
- package/dist/blz-security/implementations/uma.js +1 -0
- package/dist/blz-security/implementations/webAuthn.js +1 -0
- package/dist/blz-security/implementations/wstg.js +1 -0
- package/dist/blz-security/index.d.ts +4 -0
- package/dist/blz-security/index.js +2 -0
- package/dist/blz-security/lab/index.js +1 -0
- package/dist/blz-security/middleware/HapiServerAzureAd.d.ts +26 -0
- package/dist/blz-security/middleware/HapiServerAzureAd.js +1 -0
- package/dist/blz-security/middleware/HapiServerKeycloak.d.ts +47 -0
- package/dist/blz-security/middleware/HapiServerKeycloak.js +1 -0
- package/dist/blz-security/middleware/HapiServerSimToken.d.ts +13 -0
- package/dist/blz-security/middleware/HapiServerSimToken.js +1 -0
- package/dist/blz-security/middleware/hapi.d.ts +14 -0
- package/dist/blz-security/middleware/hapi.js +1 -0
- package/dist/blz-security/middleware/hapiServer.js +1 -0
- package/dist/blz-security/navigationMemoryRepository.d.ts +6 -0
- package/dist/blz-security/navigationMemoryRepository.js +1 -0
- package/dist/blz-security/navigationMongoDbRepository.d.ts +15 -0
- package/dist/blz-security/navigationMongoDbRepository.js +1 -0
- package/dist/blz-security/secureUrlService.d.ts +7 -0
- package/dist/blz-security/secureUrlService.js +1 -0
- package/dist/blz-security/securityService.d.ts +72 -0
- package/dist/blz-security/securityService.js +1 -0
- package/dist/blz-security/sqlInjectionGuard.d.ts +37 -0
- package/dist/blz-security/sqlInjectionGuard.js +1 -0
- package/dist/blz-security/xssGuard.d.ts +14 -0
- package/dist/blz-security/xssGuard.js +1 -0
- package/dist/blz-strings/index.d.ts +42 -0
- package/dist/blz-strings/index.js +1 -0
- package/dist/blz-uuid/index.d.ts +1 -0
- package/dist/blz-uuid/index.js +1 -0
- package/dist/blz-yaml/index.d.ts +2 -0
- package/dist/blz-yaml/index.js +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +1 -0
- package/dist/process-managers/index.d.ts +25 -0
- package/dist/process-managers/index.js +1 -0
- package/package.json +52 -41
- package/blz-base/health/index.js +0 -215
- package/blz-base/index.js +0 -1466
- package/blz-cache/LruCache.js +0 -44
- package/blz-cache/index.js +0 -29
- package/blz-config/index.js +0 -434
- package/blz-core/index.js +0 -364
- package/blz-cryptography/index.js +0 -54
- package/blz-datetimes/index.js +0 -356
- package/blz-file/example.dat +0 -2545
- package/blz-file/fileService.js +0 -205
- package/blz-file/index.js +0 -94
- package/blz-file/index.test.js +0 -31
- package/blz-file/lab.js +0 -33
- package/blz-hazelcast/index.js +0 -189
- package/blz-hazelcast/lib/credentials.js +0 -25
- package/blz-hazelcast/lib/credentialsFactory.js +0 -12
- package/blz-hazelcast/lib/hazelcastCache.js +0 -234
- package/blz-iterable/index.js +0 -446
- package/blz-json-schema/index.js +0 -11
- package/blz-jwt/index.js +0 -121
- package/blz-kafka/index.js +0 -522
- package/blz-math/index.js +0 -131
- package/blz-mongodb/index.js +0 -326
- package/blz-rds/__test__/scape.test.js +0 -58
- package/blz-rds/blz-rds-executor.js +0 -578
- package/blz-rds/blz-rds-helper.js +0 -310
- package/blz-rds/commands/core/add.js +0 -13
- package/blz-rds/commands/core/and.js +0 -18
- package/blz-rds/commands/core/asc.js +0 -10
- package/blz-rds/commands/core/avg.js +0 -10
- package/blz-rds/commands/core/column-ref.js +0 -8
- package/blz-rds/commands/core/count-distinct.js +0 -10
- package/blz-rds/commands/core/count.js +0 -10
- package/blz-rds/commands/core/decimal.js +0 -8
- package/blz-rds/commands/core/desc.js +0 -10
- package/blz-rds/commands/core/distinct.js +0 -10
- package/blz-rds/commands/core/divide.js +0 -11
- package/blz-rds/commands/core/embedded-exists.js +0 -17
- package/blz-rds/commands/core/embedded-select.js +0 -17
- package/blz-rds/commands/core/equals.js +0 -9
- package/blz-rds/commands/core/false.js +0 -8
- package/blz-rds/commands/core/greater-or-equal.js +0 -9
- package/blz-rds/commands/core/greater.js +0 -9
- package/blz-rds/commands/core/in.js +0 -9
- package/blz-rds/commands/core/integer.js +0 -8
- package/blz-rds/commands/core/is-not-null.js +0 -11
- package/blz-rds/commands/core/is-null-or-value.js +0 -10
- package/blz-rds/commands/core/is-null.js +0 -11
- package/blz-rds/commands/core/less-or-equal.js +0 -9
- package/blz-rds/commands/core/less-unary.js +0 -12
- package/blz-rds/commands/core/less.js +0 -9
- package/blz-rds/commands/core/like.js +0 -12
- package/blz-rds/commands/core/max.js +0 -10
- package/blz-rds/commands/core/min.js +0 -10
- package/blz-rds/commands/core/multiply.js +0 -13
- package/blz-rds/commands/core/not-equals.js +0 -9
- package/blz-rds/commands/core/not-in.js +0 -9
- package/blz-rds/commands/core/not.js +0 -13
- package/blz-rds/commands/core/null.js +0 -8
- package/blz-rds/commands/core/nvl.js +0 -11
- package/blz-rds/commands/core/or.js +0 -13
- package/blz-rds/commands/core/parameter.js +0 -34
- package/blz-rds/commands/core/remainder.js +0 -16
- package/blz-rds/commands/core/string.js +0 -8
- package/blz-rds/commands/core/subtract.js +0 -13
- package/blz-rds/commands/core/sum.js +0 -10
- package/blz-rds/commands/core/true.js +0 -8
- package/blz-rds/commands/core/tuple.js +0 -13
- package/blz-rds/commands/datetimes/add-days.js +0 -11
- package/blz-rds/commands/datetimes/add-hours.js +0 -11
- package/blz-rds/commands/datetimes/add-milliseconds.js +0 -11
- package/blz-rds/commands/datetimes/add-minutes.js +0 -11
- package/blz-rds/commands/datetimes/add-months.js +0 -11
- package/blz-rds/commands/datetimes/add-seconds.js +0 -11
- package/blz-rds/commands/datetimes/add-years.js +0 -11
- package/blz-rds/commands/datetimes/date-diff.js +0 -11
- package/blz-rds/commands/datetimes/date.js +0 -12
- package/blz-rds/commands/datetimes/datetime-diff.js +0 -11
- package/blz-rds/commands/datetimes/datetime.js +0 -15
- package/blz-rds/commands/datetimes/day.js +0 -10
- package/blz-rds/commands/datetimes/hour.js +0 -10
- package/blz-rds/commands/datetimes/millisecond.js +0 -10
- package/blz-rds/commands/datetimes/minute.js +0 -10
- package/blz-rds/commands/datetimes/month-text.js +0 -10
- package/blz-rds/commands/datetimes/month.js +0 -10
- package/blz-rds/commands/datetimes/now.js +0 -9
- package/blz-rds/commands/datetimes/second.js +0 -10
- package/blz-rds/commands/datetimes/subtract-days.js +0 -11
- package/blz-rds/commands/datetimes/subtract-hours.js +0 -11
- package/blz-rds/commands/datetimes/subtract-milliseconds.js +0 -11
- package/blz-rds/commands/datetimes/subtract-minutes.js +0 -11
- package/blz-rds/commands/datetimes/subtract-seconds.js +0 -11
- package/blz-rds/commands/datetimes/time-diff.js +0 -11
- package/blz-rds/commands/datetimes/time.js +0 -13
- package/blz-rds/commands/datetimes/today.js +0 -9
- package/blz-rds/commands/datetimes/week-day-text.js +0 -10
- package/blz-rds/commands/datetimes/week-day.js +0 -10
- package/blz-rds/commands/datetimes/week.js +0 -10
- package/blz-rds/commands/datetimes/year.js +0 -10
- package/blz-rds/commands/math/abs.js +0 -10
- package/blz-rds/commands/math/acos.js +0 -10
- package/blz-rds/commands/math/asin.js +0 -10
- package/blz-rds/commands/math/atan.js +0 -10
- package/blz-rds/commands/math/atan2.js +0 -11
- package/blz-rds/commands/math/ceil.js +0 -10
- package/blz-rds/commands/math/cos.js +0 -10
- package/blz-rds/commands/math/cosh.js +0 -10
- package/blz-rds/commands/math/exp.js +0 -10
- package/blz-rds/commands/math/floor.js +0 -10
- package/blz-rds/commands/math/log.js +0 -18
- package/blz-rds/commands/math/log10.js +0 -10
- package/blz-rds/commands/math/pow.js +0 -11
- package/blz-rds/commands/math/random.js +0 -9
- package/blz-rds/commands/math/round.js +0 -18
- package/blz-rds/commands/math/sign.js +0 -10
- package/blz-rds/commands/math/sin.js +0 -10
- package/blz-rds/commands/math/sinh.js +0 -10
- package/blz-rds/commands/math/sqrt.js +0 -10
- package/blz-rds/commands/math/tan.js +0 -10
- package/blz-rds/commands/math/tanh.js +0 -10
- package/blz-rds/commands/math/trunc.js +0 -18
- package/blz-rds/commands/strings/concat.js +0 -20
- package/blz-rds/commands/strings/contains.js +0 -12
- package/blz-rds/commands/strings/ends-with.js +0 -12
- package/blz-rds/commands/strings/index-of.js +0 -11
- package/blz-rds/commands/strings/is-null-or-empty.js +0 -11
- package/blz-rds/commands/strings/is-null-or-white-space.js +0 -11
- package/blz-rds/commands/strings/join.js +0 -22
- package/blz-rds/commands/strings/last-index-of.js +0 -11
- package/blz-rds/commands/strings/length.js +0 -10
- package/blz-rds/commands/strings/pad-left.js +0 -20
- package/blz-rds/commands/strings/pad-right.js +0 -20
- package/blz-rds/commands/strings/replace.js +0 -12
- package/blz-rds/commands/strings/starts-with.js +0 -12
- package/blz-rds/commands/strings/substring.js +0 -12
- package/blz-rds/commands/strings/to-lower.js +0 -10
- package/blz-rds/commands/strings/to-upper.js +0 -10
- package/blz-rds/commands/strings/trim-end.js +0 -10
- package/blz-rds/commands/strings/trim-start.js +0 -10
- package/blz-rds/commands/strings/trim.js +0 -10
- package/blz-rds/index.js +0 -744
- package/blz-rds-mysql/base.js +0 -857
- package/blz-rds-mysql/connection-manager.js +0 -129
- package/blz-rds-mysql/execute-bulk-insert.js +0 -35
- package/blz-rds-mysql/execute-bulk-merge.js +0 -45
- package/blz-rds-mysql/execute-non-query.js +0 -34
- package/blz-rds-mysql/execute-query.js +0 -50
- package/blz-rds-mysql/index.js +0 -41
- package/blz-rds-mysql/stored-procedure.js +0 -207
- package/blz-rds-mysqlx/base.js +0 -846
- package/blz-rds-mysqlx/connection-manager.js +0 -141
- package/blz-rds-mysqlx/execute-bulk-insert.js +0 -35
- package/blz-rds-mysqlx/execute-bulk-merge.js +0 -45
- package/blz-rds-mysqlx/execute-non-query.js +0 -29
- package/blz-rds-mysqlx/execute-query.js +0 -39
- package/blz-rds-mysqlx/index.js +0 -41
- package/blz-rds-mysqlx/stored-procedure.js +0 -179
- package/blz-rds-oracle/index.js +0 -539
- package/blz-rds-postgres/base.js +0 -861
- package/blz-rds-postgres/connection-manager.js +0 -225
- package/blz-rds-postgres/execute-bulk-insert.js +0 -81
- package/blz-rds-postgres/execute-bulk-merge.js +0 -93
- package/blz-rds-postgres/execute-non-query.js +0 -23
- package/blz-rds-postgres/execute-query.js +0 -37
- package/blz-rds-postgres/index.js +0 -41
- package/blz-rds-postgres/result-set.js +0 -51
- package/blz-rds-postgres/stored-procedure.js +0 -116
- package/blz-redis/index.js +0 -217
- package/blz-redis/lib/redisCache.js +0 -265
- package/blz-regex/index.js +0 -25
- package/blz-security/.eslintrc.js +0 -15
- package/blz-security/__test__/AuthorizationKpn.yaml +0 -1149
- package/blz-security/__test__/FinancingSetting.yaml +0 -177
- package/blz-security/__test__/KpnConfigPortal.yaml +0 -330
- package/blz-security/__test__/OrderManagement.yaml +0 -5190
- package/blz-security/__test__/Security.yaml +0 -128
- package/blz-security/__test__/autorization.test.js +0 -105
- package/blz-security/__test__/autorizationKpn.test.js +0 -42
- package/blz-security/__test__/orderManagement.test.js +0 -26
- package/blz-security/__test__/secureUrl.test.js +0 -79
- package/blz-security/__test__/solveMergeRule.test.js +0 -109
- package/blz-security/__test__/sqlInjectionGuard.test.js +0 -203
- package/blz-security/__test__/xssGuard.test.js +0 -204
- package/blz-security/authorizationService.js +0 -537
- package/blz-security/config/global.js +0 -8
- package/blz-security/config/welcome +0 -8
- package/blz-security/doc/README.md +0 -75
- package/blz-security/filescanner/index.js +0 -46
- package/blz-security/helpers/consts.js +0 -229
- package/blz-security/helpers/utils.js +0 -267
- package/blz-security/implementations/cache.js +0 -90
- package/blz-security/implementations/oidc.js +0 -404
- package/blz-security/implementations/pkceCacheStore.js +0 -23
- package/blz-security/implementations/saml.js +0 -10
- package/blz-security/implementations/uma.js +0 -63
- package/blz-security/implementations/webAuthn.js +0 -9
- package/blz-security/implementations/wstg.js +0 -72
- package/blz-security/index.js +0 -77
- package/blz-security/lab/index.js +0 -43
- package/blz-security/middleware/HapiServerAzureAd.js +0 -681
- package/blz-security/middleware/HapiServerKeycloak.js +0 -876
- package/blz-security/middleware/HapiServerSimToken.js +0 -286
- package/blz-security/middleware/hapi.js +0 -555
- package/blz-security/middleware/hapiServer.js +0 -1008
- package/blz-security/navigationMemoryRepository.js +0 -15
- package/blz-security/navigationMongoDbRepository.js +0 -73
- package/blz-security/secureUrlService.js +0 -47
- package/blz-security/securityService.js +0 -413
- package/blz-security/sqlInjectionGuard.js +0 -162
- package/blz-security/templates/forbidden.html +0 -0
- package/blz-security/templates/session-iframe-azure-ad.html +0 -7
- package/blz-security/templates/session-iframe.html +0 -73
- package/blz-security/templates/unauthorized.html +0 -1
- package/blz-security/xssGuard.js +0 -87
- package/blz-strings/index.js +0 -167
- package/blz-uuid/index.js +0 -7
- package/blz-yaml/index.js +0 -19
- package/index.js +0 -84
- package/process-managers/index.js +0 -422
- /package/{blz-rds-mysql → dist/blz-rds-mysql}/syntaxis.json +0 -0
- /package/{blz-rds-mysqlx → dist/blz-rds-mysqlx}/syntaxis.json +0 -0
- /package/{blz-rds-oracle → dist/blz-rds-oracle}/syntaxis.json +0 -0
- /package/{blz-rds-postgres → dist/blz-rds-postgres}/syntaxis.json +0 -0
- /package/{blz-security → dist/blz-security}/lab/ConfigurationAdmin.agent.json +0 -0
- /package/{blz-security → dist/blz-security}/lab/frontend.json +0 -0
- /package/{blz-security → dist/blz-security}/lab/result.json +0 -0
- /package/{blz-security → dist/blz-security}/lab/resultOnWeb.json +0 -0
- /package/{blz-security → dist/blz-security}/lab/rules.json +0 -0
- /package/{blz-security → dist/blz-security}/lab/securityRules.json +0 -0
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
let commands = {
|
|
2
|
-
// core
|
|
3
|
-
add: require('./commands/core/add.js'),
|
|
4
|
-
and: require('./commands/core/and.js'),
|
|
5
|
-
asc: require('./commands/core/asc.js'),
|
|
6
|
-
avg: require('./commands/core/avg.js'),
|
|
7
|
-
columnRef: require('./commands/core/column-ref.js'),
|
|
8
|
-
count: require('./commands/core/count.js'),
|
|
9
|
-
countDistinct: require('./commands/core/count-distinct.js'),
|
|
10
|
-
decimal: require('./commands/core/decimal.js'),
|
|
11
|
-
desc: require('./commands/core/desc.js'),
|
|
12
|
-
distinct: require('./commands/core/distinct.js'),
|
|
13
|
-
divide: require('./commands/core/divide.js'),
|
|
14
|
-
embeddedExists: require('./commands/core/embedded-exists.js'),
|
|
15
|
-
embeddedSelect: require('./commands/core/embedded-select.js'),
|
|
16
|
-
equals: require('./commands/core/equals.js'),
|
|
17
|
-
false: require('./commands/core/false.js'),
|
|
18
|
-
greater: require('./commands/core/greater.js'),
|
|
19
|
-
greaterOrEqual: require('./commands/core/greater-or-equal.js'),
|
|
20
|
-
in: require('./commands/core/in.js'),
|
|
21
|
-
integer: require('./commands/core/integer.js'),
|
|
22
|
-
isNotNull: require('./commands/core/is-not-null.js'),
|
|
23
|
-
isNull: require('./commands/core/is-null.js'),
|
|
24
|
-
isNullOrValue: require('./commands/core/is-null-or-value.js'),
|
|
25
|
-
less: require('./commands/core/less.js'),
|
|
26
|
-
lessOrEqual: require('./commands/core/less-or-equal.js'),
|
|
27
|
-
lessUnary: require('./commands/core/less-unary.js'),
|
|
28
|
-
like: require('./commands/core/like.js'),
|
|
29
|
-
max: require('./commands/core/max.js'),
|
|
30
|
-
min: require('./commands/core/min.js'),
|
|
31
|
-
multiply: require('./commands/core/multiply.js'),
|
|
32
|
-
not: require('./commands/core/not.js'),
|
|
33
|
-
notEquals: require('./commands/core/not-equals.js'),
|
|
34
|
-
notIn: require('./commands/core/not-in.js'),
|
|
35
|
-
null: require('./commands/core/null.js'),
|
|
36
|
-
nvl: require('./commands/core/nvl.js'),
|
|
37
|
-
or: require('./commands/core/or.js'),
|
|
38
|
-
parameter: require('./commands/core/parameter.js'),
|
|
39
|
-
parameterOut: require('./commands/core/parameter.js'),
|
|
40
|
-
remainder: require('./commands/core/remainder.js'),
|
|
41
|
-
string: require('./commands/core/string.js'),
|
|
42
|
-
subtract: require('./commands/core/subtract.js'),
|
|
43
|
-
sum: require('./commands/core/sum.js'),
|
|
44
|
-
true: require('./commands/core/true.js'),
|
|
45
|
-
tuple: require('./commands/core/tuple.js'),
|
|
46
|
-
// datetimes
|
|
47
|
-
addDays: require('./commands/datetimes/add-days.js'),
|
|
48
|
-
addHours: require('./commands/datetimes/add-hours.js'),
|
|
49
|
-
addMilliseconds: require('./commands/datetimes/add-milliseconds.js'),
|
|
50
|
-
addMinutes: require('./commands/datetimes/add-minutes.js'),
|
|
51
|
-
addMonths: require('./commands/datetimes/add-months.js'),
|
|
52
|
-
addSeconds: require('./commands/datetimes/add-seconds.js'),
|
|
53
|
-
addYears: require('./commands/datetimes/add-years.js'),
|
|
54
|
-
date: require('./commands/datetimes/date.js'),
|
|
55
|
-
dateDiff: require('./commands/datetimes/date-diff.js'),
|
|
56
|
-
datetime: require('./commands/datetimes/datetime.js'),
|
|
57
|
-
datetimeDiff: require('./commands/datetimes/datetime-diff.js'),
|
|
58
|
-
day: require('./commands/datetimes/day.js'),
|
|
59
|
-
hour: require('./commands/datetimes/hour.js'),
|
|
60
|
-
millisecond: require('./commands/datetimes/millisecond.js'),
|
|
61
|
-
minute: require('./commands/datetimes/minute.js'),
|
|
62
|
-
month: require('./commands/datetimes/month.js'),
|
|
63
|
-
monthText: require('./commands/datetimes/month-text.js'),
|
|
64
|
-
now: require('./commands/datetimes/now.js'),
|
|
65
|
-
second: require('./commands/datetimes/second.js'),
|
|
66
|
-
subtractDays: require('./commands/datetimes/subtract-days.js'),
|
|
67
|
-
subtractHours: require('./commands/datetimes/subtract-hours.js'),
|
|
68
|
-
subtractMilliseconds: require('./commands/datetimes/subtract-milliseconds.js'),
|
|
69
|
-
subtractMinutes: require('./commands/datetimes/subtract-minutes.js'),
|
|
70
|
-
subtractSeconds: require('./commands/datetimes/subtract-seconds.js'),
|
|
71
|
-
time: require('./commands/datetimes/time.js'),
|
|
72
|
-
timeDiff: require('./commands/datetimes/time-diff.js'),
|
|
73
|
-
today: require('./commands/datetimes/today.js'),
|
|
74
|
-
week: require('./commands/datetimes/week.js'),
|
|
75
|
-
weekDay: require('./commands/datetimes/week-day.js'),
|
|
76
|
-
weekDayText: require('./commands/datetimes/week-day-text.js'),
|
|
77
|
-
year: require('./commands/datetimes/year.js'),
|
|
78
|
-
// math
|
|
79
|
-
abs: require('./commands/math/abs.js'),
|
|
80
|
-
acos: require('./commands/math/acos.js'),
|
|
81
|
-
asin: require('./commands/math/asin.js'),
|
|
82
|
-
atan: require('./commands/math/atan.js'),
|
|
83
|
-
atan2: require('./commands/math/atan2.js'),
|
|
84
|
-
ceil: require('./commands/math/ceil.js'),
|
|
85
|
-
cos: require('./commands/math/cos.js'),
|
|
86
|
-
cosh: require('./commands/math/cosh.js'),
|
|
87
|
-
exp: require('./commands/math/exp.js'),
|
|
88
|
-
floor: require('./commands/math/floor.js'),
|
|
89
|
-
log: require('./commands/math/log.js'),
|
|
90
|
-
log10: require('./commands/math/log10.js'),
|
|
91
|
-
pow: require('./commands/math/pow.js'),
|
|
92
|
-
random: require('./commands/math/random.js'),
|
|
93
|
-
round: require('./commands/math/round.js'),
|
|
94
|
-
sign: require('./commands/math/sign.js'),
|
|
95
|
-
sin: require('./commands/math/sin.js'),
|
|
96
|
-
sinh: require('./commands/math/sinh.js'),
|
|
97
|
-
sqrt: require('./commands/math/sqrt.js'),
|
|
98
|
-
tan: require('./commands/math/tan.js'),
|
|
99
|
-
tanh: require('./commands/math/tanh.js'),
|
|
100
|
-
trunc: require('./commands/math/trunc.js'),
|
|
101
|
-
// strings
|
|
102
|
-
concat: require('./commands/strings/concat.js'),
|
|
103
|
-
contains: require('./commands/strings/contains.js'),
|
|
104
|
-
endsWith: require('./commands/strings/ends-with.js'),
|
|
105
|
-
indexOf: require('./commands/strings/index-of.js'),
|
|
106
|
-
isNullOrEmpty: require('./commands/strings/is-null-or-empty.js'),
|
|
107
|
-
isNullOrWhiteSpace: require('./commands/strings/is-null-or-white-space.js'),
|
|
108
|
-
join: require('./commands/strings/join.js'),
|
|
109
|
-
lastIndexOf: require('./commands/strings/last-index-of.js'),
|
|
110
|
-
length: require('./commands/strings/length.js'),
|
|
111
|
-
padLeft: require('./commands/strings/pad-left.js'),
|
|
112
|
-
padRight: require('./commands/strings/pad-right.js'),
|
|
113
|
-
replace: require('./commands/strings/replace.js'),
|
|
114
|
-
startsWith: require('./commands/strings/starts-with.js'),
|
|
115
|
-
substring: require('./commands/strings/substring.js'),
|
|
116
|
-
toLower: require('./commands/strings/to-lower.js'),
|
|
117
|
-
toUpper: require('./commands/strings/to-upper.js'),
|
|
118
|
-
trim: require('./commands/strings/trim.js'),
|
|
119
|
-
trimEnd: require('./commands/strings/trim-end.js'),
|
|
120
|
-
trimStart: require('./commands/strings/trim-start.js')
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
let getSql = function (rdsNode, rdsSyntaxis, values, asLogical) {
|
|
124
|
-
if (rdsNode.condition !== undefined && !rdsNode.condition)
|
|
125
|
-
return null;
|
|
126
|
-
let command = commands[rdsNode.command];
|
|
127
|
-
let sql = command.getSql(this, rdsNode, rdsSyntaxis, values);
|
|
128
|
-
if (asLogical)
|
|
129
|
-
return command.logical ? sql : ('(' + sql + ' = ' + rdsSyntaxis.core.true + ')');
|
|
130
|
-
else
|
|
131
|
-
return command.logical ? '(CASE WHEN ' + sql + ' THEN ' + rdsSyntaxis.core.true + ' ELSE ' + rdsSyntaxis.core.false + ' END)' : sql;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
let getType = function (rdsNode) {
|
|
135
|
-
let command = commands[rdsNode.command];
|
|
136
|
-
return command.getType(this, rdsNode);
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
let stringFormat = function () {
|
|
140
|
-
if (arguments.length === 0) {
|
|
141
|
-
return null;
|
|
142
|
-
}
|
|
143
|
-
else if (arguments.length === 1) {
|
|
144
|
-
return arguments[0];
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
let result = arguments[0];
|
|
148
|
-
for (let i = 1; i < arguments.length; i++) {
|
|
149
|
-
result = result.split('%' + i + '$s').join(arguments[i]);
|
|
150
|
-
}
|
|
151
|
-
return result;
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
let isValidCodePath = function (connection, rdsTable, codePath) {
|
|
156
|
-
let lastIndexOfPoint = codePath.lastIndexOf('.');
|
|
157
|
-
if (lastIndexOfPoint === -1) {
|
|
158
|
-
let column = findColumnByAlias(rdsTable, codePath);
|
|
159
|
-
if (column === null || column === undefined)
|
|
160
|
-
return false;
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
let firstPart = codePath.substring(0, lastIndexOfPoint);
|
|
164
|
-
let lastPart = codePath.substring(lastIndexOfPoint + 1, codePath.length);
|
|
165
|
-
let codePathParts = firstPart.split('.');
|
|
166
|
-
let currentRdsTable = rdsTable;
|
|
167
|
-
for (let i = 0; i < codePathParts.length; i++) {
|
|
168
|
-
let codePathPart = codePathParts[i];
|
|
169
|
-
let foreignKey = findForeignKeyByAlias(currentRdsTable, codePathPart);
|
|
170
|
-
if (foreignKey === null || foreignKey === undefined)
|
|
171
|
-
return false;
|
|
172
|
-
currentRdsTable = connection.rdsElements[foreignKey.rdsTableName];
|
|
173
|
-
}
|
|
174
|
-
let column = findColumnByAlias(currentRdsTable, lastPart);
|
|
175
|
-
if (column === null || column === undefined)
|
|
176
|
-
return false;
|
|
177
|
-
}
|
|
178
|
-
return true;
|
|
179
|
-
};
|
|
180
|
-
let prebuild = function (connection, rdsNode, embeddeds) {
|
|
181
|
-
if (rdsNode.condition !== undefined && !rdsNode.condition)
|
|
182
|
-
return;
|
|
183
|
-
if (rdsNode.command === 'embeddedSelect') {
|
|
184
|
-
rdsNode.embedded = { rdsTable: connection.rdsElements[rdsNode.embeddedSelect.rdsTableName], rdsJoins: [], allowLevels: true };
|
|
185
|
-
embeddeds[rdsNode.embeddedSelect.embeddedIndex] = rdsNode.embedded;
|
|
186
|
-
prebuild(connection, rdsNode.embeddedSelect.field, embeddeds);
|
|
187
|
-
if (rdsNode.embeddedSelect.where)
|
|
188
|
-
prebuild(connection, rdsNode.embeddedSelect.where, embeddeds);
|
|
189
|
-
}
|
|
190
|
-
else if (rdsNode.command === 'embeddedExists') {
|
|
191
|
-
rdsNode.embedded = { rdsTable: connection.rdsElements[rdsNode.embeddedExists.rdsTableName], rdsJoins: [], allowLevels: true };
|
|
192
|
-
embeddeds[rdsNode.embeddedExists.embeddedIndex] = rdsNode.embedded;
|
|
193
|
-
if (rdsNode.embeddedExists.where)
|
|
194
|
-
prebuild(connection, rdsNode.embeddedExists.where, embeddeds);
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
if (rdsNode.command === 'columnRef') {
|
|
198
|
-
let embedded = embeddeds[rdsNode.columnRef.embeddedIndex];
|
|
199
|
-
let aliasPrefix = 'T' + (rdsNode.columnRef.embeddedIndex === 0 ? '' : (rdsNode.columnRef.embeddedIndex + '_'));
|
|
200
|
-
let codePath = rdsNode.columnRef.codePath;
|
|
201
|
-
if (embedded.allowLevels) {
|
|
202
|
-
let lastIndexOfPoint = codePath.lastIndexOf('.');
|
|
203
|
-
if (lastIndexOfPoint === -1) {
|
|
204
|
-
let column = findColumnByAlias(embedded.rdsTable, codePath);
|
|
205
|
-
rdsNode.sql = aliasPrefix + '0.' + column.name;
|
|
206
|
-
rdsNode.type = column.type;
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
let firstPart = codePath.substring(0, lastIndexOfPoint);
|
|
210
|
-
let lastPart = codePath.substring(lastIndexOfPoint + 1, codePath.length);
|
|
211
|
-
let codePathParts = firstPart.split('.');
|
|
212
|
-
let currentCodePath = null;
|
|
213
|
-
let currentRdsJoin = null;
|
|
214
|
-
for (let i = 0; i < codePathParts.length; i++) {
|
|
215
|
-
let codePathPart = codePathParts[i];
|
|
216
|
-
currentCodePath = (currentCodePath === null) ? codePathPart : (currentCodePath + '.' + codePathPart);
|
|
217
|
-
let rdsJoin = findRdsJoin(embedded.rdsJoins, currentCodePath);
|
|
218
|
-
if (rdsJoin === null) {
|
|
219
|
-
let foreignKey = findForeignKeyByAlias(currentRdsJoin ? currentRdsJoin.rdsTable : embedded.rdsTable, codePathPart);
|
|
220
|
-
rdsJoin = {};
|
|
221
|
-
rdsJoin.codePath = currentCodePath;
|
|
222
|
-
rdsJoin.rdsTable = connection.rdsElements[foreignKey.rdsTableName];
|
|
223
|
-
rdsJoin.isLeftJoin = currentRdsJoin ? currentRdsJoin.isLeftJoin : false;
|
|
224
|
-
rdsJoin.aliasIndex = embedded.rdsJoins.length + 1;
|
|
225
|
-
let sqlsConditions = [];
|
|
226
|
-
if (foreignKey.details) {
|
|
227
|
-
for (let j = 0; j < foreignKey.details.length; j++) {
|
|
228
|
-
let foreignKeyDetail = foreignKey.details[j];
|
|
229
|
-
let rdsAliasIndex1 = null;
|
|
230
|
-
let column1 = null;
|
|
231
|
-
if (currentRdsJoin) {
|
|
232
|
-
rdsAliasIndex1 = currentRdsJoin.aliasIndex;
|
|
233
|
-
column1 = findColumnByName(currentRdsJoin.rdsTable, foreignKeyDetail.columnName);
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
rdsAliasIndex1 = 0;
|
|
237
|
-
column1 = findColumnByName(embedded.rdsTable, foreignKeyDetail.columnName);
|
|
238
|
-
}
|
|
239
|
-
let rdsAliasIndex2 = rdsJoin.aliasIndex;
|
|
240
|
-
let column2 = findColumnByName(rdsJoin.rdsTable, foreignKeyDetail.relatedColumnName);
|
|
241
|
-
sqlsConditions.push(aliasPrefix + rdsAliasIndex1 + '.' + column1.name + ' = ' + aliasPrefix + rdsAliasIndex2 + '.' + column2.name);
|
|
242
|
-
rdsJoin.isLeftJoin = rdsJoin.isLeftJoin || column1.allowNull;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
rdsJoin.sql = (rdsJoin.isLeftJoin ? 'LEFT' : 'INNER') + ' JOIN ' + rdsJoin.rdsTable.tableName + ' ' + aliasPrefix + rdsJoin.aliasIndex + ' ON ' + sqlsConditions.join(' AND ');
|
|
246
|
-
embedded.rdsJoins.push(rdsJoin);
|
|
247
|
-
}
|
|
248
|
-
currentRdsJoin = rdsJoin;
|
|
249
|
-
}
|
|
250
|
-
let column = findColumnByAlias(currentRdsJoin.rdsTable, lastPart);
|
|
251
|
-
rdsNode.sql = aliasPrefix + currentRdsJoin.aliasIndex + '.' + column.name;
|
|
252
|
-
rdsNode.type = column.type;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
let column = findColumnByAlias(embedded.rdsTable, codePath);
|
|
257
|
-
rdsNode.sql = column.name;
|
|
258
|
-
rdsNode.type = column.type;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
if (rdsNode.children)
|
|
262
|
-
for (let i = 0; i < rdsNode.children.length; i++) {
|
|
263
|
-
let childRdsNode = rdsNode.children[i];
|
|
264
|
-
prebuild(connection, childRdsNode, embeddeds);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
let findRdsJoin = function (rdsJoins, codePath) {
|
|
269
|
-
for (let i = 0; i < rdsJoins.length; i++) {
|
|
270
|
-
let rdsJoin = rdsJoins[i];
|
|
271
|
-
if (rdsJoin.codePath === codePath)
|
|
272
|
-
return rdsJoin;
|
|
273
|
-
}
|
|
274
|
-
return null;
|
|
275
|
-
};
|
|
276
|
-
let findColumnByName = function (rdsTable, name) {
|
|
277
|
-
if (rdsTable.columns)
|
|
278
|
-
for (let i = 0; i < rdsTable.columns.length; i++) {
|
|
279
|
-
let column = rdsTable.columns[i];
|
|
280
|
-
if (column.name === name)
|
|
281
|
-
return column;
|
|
282
|
-
}
|
|
283
|
-
return null;
|
|
284
|
-
};
|
|
285
|
-
let findColumnByAlias = function (rdsTable, alias) {
|
|
286
|
-
if (rdsTable.columns)
|
|
287
|
-
for (let i = 0; i < rdsTable.columns.length; i++) {
|
|
288
|
-
let column = rdsTable.columns[i];
|
|
289
|
-
if (column.alias === alias)
|
|
290
|
-
return column;
|
|
291
|
-
}
|
|
292
|
-
return null;
|
|
293
|
-
};
|
|
294
|
-
let findForeignKeyByAlias = function (rdsTable, alias) {
|
|
295
|
-
if (rdsTable.foreignKeys)
|
|
296
|
-
for (let i = 0; i < rdsTable.foreignKeys.length; i++) {
|
|
297
|
-
let foreignKey = rdsTable.foreignKeys[i];
|
|
298
|
-
if (foreignKey.alias === alias)
|
|
299
|
-
return foreignKey;
|
|
300
|
-
}
|
|
301
|
-
return null;
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
module.exports = {
|
|
305
|
-
getSql: getSql,
|
|
306
|
-
getType: getType,
|
|
307
|
-
stringFormat: stringFormat,
|
|
308
|
-
isValidCodePath: isValidCodePath,
|
|
309
|
-
prebuild: prebuild
|
|
310
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return '(' + rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values) + ' + ' + rdsHelper.getSql(rdsNode.children[1], rdsSyntaxis, values) + ')';
|
|
4
|
-
},
|
|
5
|
-
getType: function (rdsHelper, rdsNode) {
|
|
6
|
-
let type1 = rdsHelper.getType(rdsNode.children[0]);
|
|
7
|
-
let type2 = rdsHelper.getType(rdsNode.children[1]);
|
|
8
|
-
if (type1 === 'decimal' || type2 === 'decimal')
|
|
9
|
-
return 'decimal';
|
|
10
|
-
else
|
|
11
|
-
return 'integer';
|
|
12
|
-
}
|
|
13
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
let parts = [];
|
|
4
|
-
for (let i = 0; i < rdsNode.children.length; i++) {
|
|
5
|
-
let part = rdsHelper.getSql(rdsNode.children[i], rdsSyntaxis, values, true);
|
|
6
|
-
if (part)
|
|
7
|
-
parts.push(part);
|
|
8
|
-
}
|
|
9
|
-
if (parts.length > 0)
|
|
10
|
-
return '(' + parts.join(' AND ') + ')';
|
|
11
|
-
else
|
|
12
|
-
return null;
|
|
13
|
-
},
|
|
14
|
-
getType: function (rdsHelper, rdsNode) {
|
|
15
|
-
return 'boolean';
|
|
16
|
-
},
|
|
17
|
-
logical: true
|
|
18
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.asc,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values));
|
|
6
|
-
},
|
|
7
|
-
getType: function (rdsHelper, rdsNode) {
|
|
8
|
-
return rdsHelper.getType(rdsNode.children[0]);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.avg,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values));
|
|
6
|
-
},
|
|
7
|
-
getType: function (rdsHelper, rdsNode) {
|
|
8
|
-
return rdsHelper.getType(rdsNode.children[0]);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.countDistinct,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values));
|
|
6
|
-
},
|
|
7
|
-
getType: function (rdsHelper, rdsNode) {
|
|
8
|
-
return 'integer';
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.count,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values));
|
|
6
|
-
},
|
|
7
|
-
getType: function (rdsHelper, rdsNode) {
|
|
8
|
-
return 'integer';
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.desc,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values));
|
|
6
|
-
},
|
|
7
|
-
getType: function (rdsHelper, rdsNode) {
|
|
8
|
-
return rdsHelper.getType(rdsNode.children[0]);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.distinct,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values));
|
|
6
|
-
},
|
|
7
|
-
getType: function (rdsHelper, rdsNode) {
|
|
8
|
-
return rdsHelper.getType(rdsNode.children[0]);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.divide,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values),
|
|
6
|
-
rdsHelper.getSql(rdsNode.children[1], rdsSyntaxis, values));
|
|
7
|
-
},
|
|
8
|
-
getType: function (rdsHelper, rdsNode) {
|
|
9
|
-
return 'decimal';
|
|
10
|
-
}
|
|
11
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
let sql = 'EXISTS(SELECT 1 FROM ' + rdsNode.embedded.rdsTable.tableName + ' T' + rdsNode.embeddedExists.embeddedIndex + '_0';
|
|
4
|
-
for (let i = 0; i < rdsNode.embedded.rdsJoins.length; i++) {
|
|
5
|
-
let rdsJoin = rdsNode.embedded.rdsJoins[i];
|
|
6
|
-
sql += ' ' + rdsJoin.sql;
|
|
7
|
-
}
|
|
8
|
-
if (rdsNode.embeddedExists.where)
|
|
9
|
-
sql += ' WHERE ' + rdsHelper.getSql(rdsNode.embeddedExists.where, rdsSyntaxis, values, true);
|
|
10
|
-
sql += ')';
|
|
11
|
-
return sql;
|
|
12
|
-
},
|
|
13
|
-
getType: function (rdsHelper, rdsNode) {
|
|
14
|
-
return 'boolean';
|
|
15
|
-
},
|
|
16
|
-
logical: true
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
let sql = '(SELECT ' + rdsHelper.getSql(rdsNode.embeddedSelect.field, rdsSyntaxis, values);
|
|
4
|
-
sql += ' FROM ' + rdsNode.embedded.rdsTable.tableName + ' T' + rdsNode.embeddedSelect.embeddedIndex + '_0';
|
|
5
|
-
for (let i = 0; i < rdsNode.embedded.rdsJoins.length; i++) {
|
|
6
|
-
let rdsJoin = rdsNode.embedded.rdsJoins[i];
|
|
7
|
-
sql += ' ' + rdsJoin.sql;
|
|
8
|
-
}
|
|
9
|
-
if (rdsNode.embeddedSelect.where)
|
|
10
|
-
sql += ' WHERE ' + rdsHelper.getSql(rdsNode.embeddedSelect.where, rdsSyntaxis, values, true);
|
|
11
|
-
sql += ')';
|
|
12
|
-
return sql;
|
|
13
|
-
},
|
|
14
|
-
getType: function (rdsHelper, rdsNode) {
|
|
15
|
-
return rdsHelper.getType(rdsNode.embeddedSelect.field);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return '(' + rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values) + ' = ' + rdsHelper.getSql(rdsNode.children[1], rdsSyntaxis, values) + ')';
|
|
4
|
-
},
|
|
5
|
-
getType: function (rdsHelper, rdsNode) {
|
|
6
|
-
return 'boolean';
|
|
7
|
-
},
|
|
8
|
-
logical: true
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return '(' + rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values) + ' >= ' + rdsHelper.getSql(rdsNode.children[1], rdsSyntaxis, values) + ')';
|
|
4
|
-
},
|
|
5
|
-
getType: function (rdsHelper, rdsNode) {
|
|
6
|
-
return 'boolean';
|
|
7
|
-
},
|
|
8
|
-
logical: true
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return '(' + rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values) + ' > ' + rdsHelper.getSql(rdsNode.children[1], rdsSyntaxis, values) + ')';
|
|
4
|
-
},
|
|
5
|
-
getType: function (rdsHelper, rdsNode) {
|
|
6
|
-
return 'boolean';
|
|
7
|
-
},
|
|
8
|
-
logical: true
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return '(' + rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values) + ' IN ' + rdsHelper.getSql(rdsNode.children[1], rdsSyntaxis, values) + ')';
|
|
4
|
-
},
|
|
5
|
-
getType: function (rdsHelper, rdsNode) {
|
|
6
|
-
return 'boolean';
|
|
7
|
-
},
|
|
8
|
-
logical: true
|
|
9
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.isNotNull,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values));
|
|
6
|
-
},
|
|
7
|
-
getType: function (rdsHelper, rdsNode) {
|
|
8
|
-
return 'boolean';
|
|
9
|
-
},
|
|
10
|
-
logical: true
|
|
11
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return '(' + rdsHelper.stringFormat(rdsSyntaxis.core.isNull, rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values)) + ' OR ' +
|
|
4
|
-
'(' + rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values) + ' = ' + rdsHelper.getSql(rdsNode.children[1], rdsSyntaxis, values) + '))';
|
|
5
|
-
},
|
|
6
|
-
getType: function (rdsHelper, rdsNode) {
|
|
7
|
-
return 'boolean';
|
|
8
|
-
},
|
|
9
|
-
logical: true
|
|
10
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.isNull,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values));
|
|
6
|
-
},
|
|
7
|
-
getType: function (rdsHelper, rdsNode) {
|
|
8
|
-
return 'boolean';
|
|
9
|
-
},
|
|
10
|
-
logical: true
|
|
11
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return '(' + rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values) + ' <= ' + rdsHelper.getSql(rdsNode.children[1], rdsSyntaxis, values) + ')';
|
|
4
|
-
},
|
|
5
|
-
getType: function (rdsHelper, rdsNode) {
|
|
6
|
-
return 'boolean';
|
|
7
|
-
},
|
|
8
|
-
logical: true
|
|
9
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
let parts = [];
|
|
4
|
-
for (let i = 0; i < rdsNode.children.length; i++) {
|
|
5
|
-
parts.push();
|
|
6
|
-
}
|
|
7
|
-
return '(-' + rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values) + ')';
|
|
8
|
-
},
|
|
9
|
-
getType: function (rdsHelper, rdsNode) {
|
|
10
|
-
return rdsHelper.getType(rdsNode.children[0]);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return '(' + rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values) + ' < ' + rdsHelper.getSql(rdsNode.children[1], rdsSyntaxis, values) + ')';
|
|
4
|
-
},
|
|
5
|
-
getType: function (rdsHelper, rdsNode) {
|
|
6
|
-
return 'boolean';
|
|
7
|
-
},
|
|
8
|
-
logical: true
|
|
9
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.like,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values),
|
|
6
|
-
rdsHelper.getSql(rdsNode.children[1], rdsSyntaxis, values));
|
|
7
|
-
},
|
|
8
|
-
getType: function (rdsHelper, rdsNode) {
|
|
9
|
-
return 'boolean';
|
|
10
|
-
},
|
|
11
|
-
logical: true
|
|
12
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.max,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values));
|
|
6
|
-
},
|
|
7
|
-
getType: function (rdsHelper, rdsNode) {
|
|
8
|
-
return rdsHelper.getType(rdsNode.children[0]);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
getSql: function (rdsHelper, rdsNode, rdsSyntaxis, values) {
|
|
3
|
-
return rdsHelper.stringFormat(
|
|
4
|
-
rdsSyntaxis.core.min,
|
|
5
|
-
rdsHelper.getSql(rdsNode.children[0], rdsSyntaxis, values));
|
|
6
|
-
},
|
|
7
|
-
getType: function (rdsHelper, rdsNode) {
|
|
8
|
-
return rdsHelper.getType(rdsNode.children[0]);
|
|
9
|
-
}
|
|
10
|
-
};
|