@mastra/mysql 0.17.2-alpha.1 → 0.17.2-alpha.2
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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +13 -13
- package/dist/index.cjs +9 -0
- package/dist/index.js +9 -0
- package/package.json +3 -3
package/dist/docs/SKILL.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.17.2-alpha.
|
|
2
|
+
"version": "0.17.2-alpha.2",
|
|
3
3
|
"package": "@mastra/mysql",
|
|
4
4
|
"exports": {
|
|
5
5
|
"AgentsMySQL": {
|
|
@@ -20,52 +20,52 @@
|
|
|
20
20
|
"ExperimentsMySQL": {
|
|
21
21
|
"types": "dist/storage/domains/experiments/index.d.ts",
|
|
22
22
|
"implementation": "dist/index.js",
|
|
23
|
-
"line":
|
|
23
|
+
"line": 3107
|
|
24
24
|
},
|
|
25
25
|
"MCPClientsMySQL": {
|
|
26
26
|
"types": "dist/storage/domains/mcp-clients/index.d.ts",
|
|
27
27
|
"implementation": "dist/index.js",
|
|
28
|
-
"line":
|
|
28
|
+
"line": 6073
|
|
29
29
|
},
|
|
30
30
|
"MCPServersMySQL": {
|
|
31
31
|
"types": "dist/storage/domains/mcp-servers/index.d.ts",
|
|
32
32
|
"implementation": "dist/index.js",
|
|
33
|
-
"line":
|
|
33
|
+
"line": 6546
|
|
34
34
|
},
|
|
35
35
|
"MemoryMySQL": {
|
|
36
36
|
"types": "dist/storage/domains/memory/index.d.ts",
|
|
37
37
|
"implementation": "dist/index.js",
|
|
38
|
-
"line":
|
|
38
|
+
"line": 7309
|
|
39
39
|
},
|
|
40
40
|
"MySQLStore": {
|
|
41
41
|
"types": "dist/storage/index.d.ts",
|
|
42
42
|
"implementation": "dist/index.js",
|
|
43
|
-
"line":
|
|
43
|
+
"line": 13612
|
|
44
44
|
},
|
|
45
45
|
"ObservabilityMySQL": {
|
|
46
46
|
"types": "dist/storage/domains/observability/index.d.ts",
|
|
47
47
|
"implementation": "dist/index.js",
|
|
48
|
-
"line":
|
|
48
|
+
"line": 9424
|
|
49
49
|
},
|
|
50
50
|
"PromptBlocksMySQL": {
|
|
51
51
|
"types": "dist/storage/domains/prompt-blocks/index.d.ts",
|
|
52
52
|
"implementation": "dist/index.js",
|
|
53
|
-
"line":
|
|
53
|
+
"line": 9943
|
|
54
54
|
},
|
|
55
55
|
"ScorerDefinitionsMySQL": {
|
|
56
56
|
"types": "dist/storage/domains/scorer-definitions/index.d.ts",
|
|
57
57
|
"implementation": "dist/index.js",
|
|
58
|
-
"line":
|
|
58
|
+
"line": 10701
|
|
59
59
|
},
|
|
60
60
|
"ScoresMySQL": {
|
|
61
61
|
"types": "dist/storage/domains/scores/index.d.ts",
|
|
62
62
|
"implementation": "dist/index.js",
|
|
63
|
-
"line":
|
|
63
|
+
"line": 11188
|
|
64
64
|
},
|
|
65
65
|
"SkillsMySQL": {
|
|
66
66
|
"types": "dist/storage/domains/skills/index.d.ts",
|
|
67
67
|
"implementation": "dist/index.js",
|
|
68
|
-
"line":
|
|
68
|
+
"line": 11485
|
|
69
69
|
},
|
|
70
70
|
"StoreOperationsMySQL": {
|
|
71
71
|
"types": "dist/storage/domains/operations/index.d.ts",
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"WorkflowsMySQL": {
|
|
76
76
|
"types": "dist/storage/domains/workflows/index.d.ts",
|
|
77
77
|
"implementation": "dist/index.js",
|
|
78
|
-
"line":
|
|
78
|
+
"line": 12453
|
|
79
79
|
},
|
|
80
80
|
"WorkspacesMySQL": {
|
|
81
81
|
"types": "dist/storage/domains/workspaces/index.d.ts",
|
|
82
82
|
"implementation": "dist/index.js",
|
|
83
|
-
"line":
|
|
83
|
+
"line": 13016
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"modules": {}
|
package/dist/index.cjs
CHANGED
|
@@ -2831,6 +2831,15 @@ var DatasetsMySQL = class DatasetsMySQL extends _mastra_core_storage.DatasetsSto
|
|
|
2831
2831
|
};
|
|
2832
2832
|
const perPage = (0, _mastra_core_storage.normalizePerPage)(perPageInput, 100);
|
|
2833
2833
|
const { offset, perPage: perPageForResponse } = (0, _mastra_core_storage.calculatePagination)(page, perPageInput, perPage);
|
|
2834
|
+
if (perPage === 0) return {
|
|
2835
|
+
items: [],
|
|
2836
|
+
pagination: {
|
|
2837
|
+
total,
|
|
2838
|
+
page,
|
|
2839
|
+
perPage: perPageForResponse,
|
|
2840
|
+
hasMore: true
|
|
2841
|
+
}
|
|
2842
|
+
};
|
|
2834
2843
|
const limitValue = perPageInput === false ? total : perPage;
|
|
2835
2844
|
const [rows] = await this.pool.execute(`SELECT ${ITEM_SELECT_COLUMNS} FROM ${tableItemsName}${whereSql} ORDER BY ${quoteIdentifier(orderBy.field, "column name")} ${orderBy.direction}, \`id\` ASC LIMIT ${limitValue} OFFSET ${offset}`, params);
|
|
2836
2845
|
return {
|
package/dist/index.js
CHANGED
|
@@ -2830,6 +2830,15 @@ var DatasetsMySQL = class DatasetsMySQL extends DatasetsStorage {
|
|
|
2830
2830
|
};
|
|
2831
2831
|
const perPage = normalizePerPage(perPageInput, 100);
|
|
2832
2832
|
const { offset, perPage: perPageForResponse } = calculatePagination(page, perPageInput, perPage);
|
|
2833
|
+
if (perPage === 0) return {
|
|
2834
|
+
items: [],
|
|
2835
|
+
pagination: {
|
|
2836
|
+
total,
|
|
2837
|
+
page,
|
|
2838
|
+
perPage: perPageForResponse,
|
|
2839
|
+
hasMore: true
|
|
2840
|
+
}
|
|
2841
|
+
};
|
|
2833
2842
|
const limitValue = perPageInput === false ? total : perPage;
|
|
2834
2843
|
const [rows] = await this.pool.execute(`SELECT ${ITEM_SELECT_COLUMNS} FROM ${tableItemsName}${whereSql} ORDER BY ${quoteIdentifier(orderBy.field, "column name")} ${orderBy.direction}, \`id\` ASC LIMIT ${limitValue} OFFSET ${offset}`, params);
|
|
2835
2844
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mysql",
|
|
3
|
-
"version": "0.17.2-alpha.
|
|
3
|
+
"version": "0.17.2-alpha.2",
|
|
4
4
|
"description": "MySQL provider for Mastra - db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"tsx": "^4.23.15",
|
|
31
31
|
"typescript": "^7.0.2",
|
|
32
32
|
"vitest": "5.1.0",
|
|
33
|
-
"@internal/lint": "0.0.151",
|
|
34
33
|
"@internal/core": "0.1.4",
|
|
34
|
+
"@internal/lint": "0.0.151",
|
|
35
35
|
"@internal/storage-test-utils": "0.0.147",
|
|
36
36
|
"@internal/types-builder": "0.0.126",
|
|
37
|
-
"@mastra/core": "1.86.0-alpha.
|
|
37
|
+
"@mastra/core": "1.86.0-alpha.8"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@mastra/core": ">=1.76.0-0 <2.0.0-0"
|