@mastra/mysql 0.13.3-alpha.0 → 0.14.0-alpha.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.
@@ -3,7 +3,7 @@ name: mastra-mysql
3
3
  description: Documentation for @mastra/mysql. Use when working with @mastra/mysql APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/mysql"
6
- version: "0.13.3-alpha.0"
6
+ version: "0.14.0-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.13.3-alpha.0",
2
+ "version": "0.14.0-alpha.1",
3
3
  "package": "@mastra/mysql",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -2340,6 +2340,10 @@ var DatasetsMySQL = class DatasetsMySQL extends _mastra_core_storage.DatasetsSto
2340
2340
  const { page, perPage: perPageInput } = args.pagination;
2341
2341
  const filterParts = [];
2342
2342
  const filterArgs = [];
2343
+ if (args.filters?.datasetIds !== void 0) {
2344
+ filterParts.push(args.filters.datasetIds.length > 0 ? `\`id\` IN (${args.filters.datasetIds.map(() => "?").join(",")})` : "1 = 0");
2345
+ filterArgs.push(...args.filters.datasetIds);
2346
+ }
2343
2347
  if (args.filters?.organizationId !== void 0) {
2344
2348
  filterParts.push(`${quoteIdentifier("organizationId", "column name")} = ?`);
2345
2349
  filterArgs.push(args.filters.organizationId);