Has all of SQLServer
This commit is contained in:
parent
3d263f3927
commit
91f906877f
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -250,10 +250,22 @@ class InternalBuilder {
|
|||
} else if (this.client === SqlClients.MY_SQL) {
|
||||
iterate(filters.contains, (key: string, value: Array<any>) => {
|
||||
// @ts-ignore
|
||||
query = query[rawFnc](`JSON_CONTAINS(${key}, ${stringifyArray(value)})`)
|
||||
query = query[rawFnc](
|
||||
`JSON_CONTAINS(${key}, ${stringifyArray(value)})`
|
||||
)
|
||||
})
|
||||
} else {
|
||||
iterate(filters.contains, like)
|
||||
iterate(filters.contains, (key: string, value: Array<any>) => {
|
||||
let andStatement = ""
|
||||
for (let i in value) {
|
||||
if (typeof value[i] === "string") {
|
||||
value[i] = `%"${value[i]}"%`
|
||||
}
|
||||
andStatement += (andStatement ? " AND " : "") + `LOWER(${likeKey(this.client, key)}) LIKE ?`
|
||||
}
|
||||
// @ts-ignore
|
||||
query = query[rawFnc](andStatement, value)
|
||||
})
|
||||
}
|
||||
}
|
||||
return query
|
||||
|
|
|
@ -291,12 +291,12 @@
|
|||
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
|
||||
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
|
||||
|
||||
"@budibase/backend-core@1.1.21":
|
||||
version "1.1.21"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/backend-core/-/backend-core-1.1.21.tgz#660e0023f674189b25ca5eabbaff67aebcdf03b8"
|
||||
integrity sha512-qEf9ggMX6NpVOTe1xfp6NZnbdBV0h0ls9qGGTcMjPakhatB4+3YKSTEDSYYRzY/OLNoKPhcd3aErXuFRR7WKrg==
|
||||
"@budibase/backend-core@1.1.22-alpha.0":
|
||||
version "1.1.22-alpha.0"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/backend-core/-/backend-core-1.1.22-alpha.0.tgz#2a090a723d35ce4a2e377ac0927fe127213bcbb3"
|
||||
integrity sha512-77gxcPrjejdqaMaMkbrCS0glYA1jdGo74NpCxdadWx+suU4SMTmOt2jgnEZg20aeKcky2xTpVbjDxIq+Fb2J+g==
|
||||
dependencies:
|
||||
"@budibase/types" "^1.1.21"
|
||||
"@budibase/types" "^1.1.22-alpha.0"
|
||||
"@techpass/passport-openidconnect" "0.3.2"
|
||||
aws-sdk "2.1030.0"
|
||||
bcrypt "5.0.1"
|
||||
|
@ -324,19 +324,24 @@
|
|||
uuid "8.3.2"
|
||||
zlib "1.0.5"
|
||||
|
||||
"@budibase/pro@1.1.21":
|
||||
version "1.1.21"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-1.1.21.tgz#c9d21bc82740e9407673088dc8451273368943d9"
|
||||
integrity sha512-aE20qZmVg/sPp4bV++xwdUnp8+c9wq7Df34P9hYvlhklgh+fxd+2RyautOAfMADRMIZIbtP4/gal95bE/KTPNQ==
|
||||
"@budibase/pro@1.1.22-alpha.0":
|
||||
version "1.1.22-alpha.0"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/pro/-/pro-1.1.22-alpha.0.tgz#5718188fbc76ce3c3cf3c633c99c6e59f5846310"
|
||||
integrity sha512-QL5bhT/BJnoKVV5XH5+s3jSCBzV/JGOy8YQObEjZgCrtTWUjdvMrm5pFinflFGriCfoArmvR3Q51FBpNJQfaag==
|
||||
dependencies:
|
||||
"@budibase/backend-core" "1.1.21"
|
||||
"@budibase/types" "1.1.21"
|
||||
"@budibase/backend-core" "1.1.22-alpha.0"
|
||||
"@budibase/types" "1.1.22-alpha.0"
|
||||
node-fetch "^2.6.1"
|
||||
|
||||
"@budibase/types@1.1.21", "@budibase/types@^1.1.21":
|
||||
version "1.1.21"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/types/-/types-1.1.21.tgz#4f46cd52f3e52c804e5dba06b0520825da81f84e"
|
||||
integrity sha512-fR8783evr6SKZggu/QZRgcZfd8SAuG2U+xO8lL0x/pLNZI1vOeTyQXASoPLLzj6uA8bWnPIy8BGd9PK4Mw3XVQ==
|
||||
"@budibase/types@1.1.22-alpha.0":
|
||||
version "1.1.22-alpha.0"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/types/-/types-1.1.22-alpha.0.tgz#85fb7f37773c710e8232c95104095c26a8dd22ca"
|
||||
integrity sha512-1gRwAtjEl7Ug1jrYwD9Iudbfgs37nndEBEB6yVdNPKA5SpjG+Fwx30zp6R961zlx1vsSu4iMdwM8IbMsCM8p1g==
|
||||
|
||||
"@budibase/types@^1.1.22-alpha.0":
|
||||
version "1.1.23"
|
||||
resolved "https://registry.yarnpkg.com/@budibase/types/-/types-1.1.23.tgz#10894f08704def5d2b62b5b0158e714c43bb76ac"
|
||||
integrity sha512-McTJZ+R0qGL3PR4Qi5UjYgn82VF1dIi08IIsZjnGbAwY+tt3aATv4uRyERk0fFC7s0IC4neoDs3Wh5zjKxZTSw==
|
||||
|
||||
"@cspotcode/source-map-consumer@0.8.0":
|
||||
version "0.8.0"
|
||||
|
|
Loading…
Reference in New Issue