@mastra/libsql 1.22.3-alpha.2 → 1.22.3
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 +13 -107
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-deployment-workers.md +6 -0
- package/dist/docs/references/docs-studio-editor.md +1 -1
- package/dist/docs/references/reference-core-mastra-class.md +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/vector/sql-builder.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -238,13 +238,13 @@ const FILTER_OPERATORS = {
|
|
|
238
238
|
sql: `NOT (${key})`,
|
|
239
239
|
needsValue: false
|
|
240
240
|
}),
|
|
241
|
-
$size: (key,
|
|
241
|
+
$size: (key, value) => {
|
|
242
242
|
const jsonPath = getJsonPath(key);
|
|
243
243
|
return {
|
|
244
244
|
sql: `(
|
|
245
245
|
CASE
|
|
246
|
-
WHEN json_type(json_extract(metadata, ${jsonPath})) = 'array' THEN
|
|
247
|
-
json_array_length(json_extract(metadata, ${jsonPath})) =
|
|
246
|
+
WHEN json_type(json_extract(metadata, ${jsonPath})) = 'array' THEN
|
|
247
|
+
json_array_length(json_extract(metadata, ${jsonPath})) = ?
|
|
248
248
|
ELSE FALSE
|
|
249
249
|
END
|
|
250
250
|
)`,
|