@mastra/mssql 0.0.0-add-libsql-changeset-20250910154739
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/CHANGELOG.md +418 -0
- package/LICENSE.md +15 -0
- package/README.md +96 -0
- package/dist/index.cjs +2367 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2361 -0
- package/dist/index.js.map +1 -0
- package/dist/storage/domains/legacy-evals/index.d.ts +20 -0
- package/dist/storage/domains/legacy-evals/index.d.ts.map +1 -0
- package/dist/storage/domains/memory/index.d.ts +98 -0
- package/dist/storage/domains/memory/index.d.ts.map +1 -0
- package/dist/storage/domains/operations/index.d.ts +51 -0
- package/dist/storage/domains/operations/index.d.ts.map +1 -0
- package/dist/storage/domains/scores/index.d.ts +46 -0
- package/dist/storage/domains/scores/index.d.ts.map +1 -0
- package/dist/storage/domains/traces/index.d.ts +37 -0
- package/dist/storage/domains/traces/index.d.ts.map +1 -0
- package/dist/storage/domains/utils.d.ts +6 -0
- package/dist/storage/domains/utils.d.ts.map +1 -0
- package/dist/storage/domains/workflows/index.d.ts +54 -0
- package/dist/storage/domains/workflows/index.d.ts.map +1 -0
- package/dist/storage/index.d.ts +241 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/package.json +64 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
# @mastra/mssql
|
|
2
|
+
|
|
3
|
+
## 0.0.0-add-libsql-changeset-20250910154739
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`b4379f7`](https://github.com/mastra-ai/mastra/commit/b4379f703fd74474f253420e8c3a684f2c4b2f8e), [`d34aaa1`](https://github.com/mastra-ai/mastra/commit/d34aaa1da5d3c5f991740f59e2fe6d28d3e2dd91), [`b2babfa`](https://github.com/mastra-ai/mastra/commit/b2babfa9e75b22f2759179e71d8473f6dc5421ed), [`d8c3ba5`](https://github.com/mastra-ai/mastra/commit/d8c3ba516f4173282d293f7e64769cfc8738d360), [`6424c7e`](https://github.com/mastra-ai/mastra/commit/6424c7ec38b6921d66212431db1e0958f441b2a7), [`db94750`](https://github.com/mastra-ai/mastra/commit/db94750a41fd29b43eb1f7ce8e97ba8b9978c91b), [`a66a371`](https://github.com/mastra-ai/mastra/commit/a66a3716b00553d7f01842be9deb34f720b10fab), [`69fc3cd`](https://github.com/mastra-ai/mastra/commit/69fc3cd0fd814901785bdcf49bf536ab1e7fd975)]:
|
|
8
|
+
- @mastra/core@0.0.0-add-libsql-changeset-20250910154739
|
|
9
|
+
|
|
10
|
+
## 0.4.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 376913a: Update peerdeps of @mastra/core
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 6f5eb7a: Throw if an empty or whitespace-only threadId is passed when getting messages
|
|
19
|
+
- Updated dependencies [8fbf79e]
|
|
20
|
+
- Updated dependencies [fd83526]
|
|
21
|
+
- Updated dependencies [d0b90ab]
|
|
22
|
+
- Updated dependencies [6f5eb7a]
|
|
23
|
+
- Updated dependencies [a01cf14]
|
|
24
|
+
- Updated dependencies [a9e50ee]
|
|
25
|
+
- Updated dependencies [5397eb4]
|
|
26
|
+
- Updated dependencies [c9f4e4a]
|
|
27
|
+
- Updated dependencies [0acbc80]
|
|
28
|
+
- @mastra/core@0.16.0
|
|
29
|
+
|
|
30
|
+
## 0.4.0-alpha.1
|
|
31
|
+
|
|
32
|
+
### Minor Changes
|
|
33
|
+
|
|
34
|
+
- 376913a: Update peerdeps of @mastra/core
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies [8fbf79e]
|
|
39
|
+
- @mastra/core@0.16.0-alpha.1
|
|
40
|
+
|
|
41
|
+
## 0.3.7-alpha.0
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- 6f5eb7a: Throw if an empty or whitespace-only threadId is passed when getting messages
|
|
46
|
+
- Updated dependencies [fd83526]
|
|
47
|
+
- Updated dependencies [d0b90ab]
|
|
48
|
+
- Updated dependencies [6f5eb7a]
|
|
49
|
+
- Updated dependencies [a01cf14]
|
|
50
|
+
- Updated dependencies [a9e50ee]
|
|
51
|
+
- Updated dependencies [5397eb4]
|
|
52
|
+
- Updated dependencies [c9f4e4a]
|
|
53
|
+
- Updated dependencies [0acbc80]
|
|
54
|
+
- @mastra/core@0.16.0-alpha.0
|
|
55
|
+
|
|
56
|
+
## 0.3.6
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- de3cbc6: Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
|
|
61
|
+
- f0dfcac: updated core peerdep
|
|
62
|
+
- Updated dependencies [ab48c97]
|
|
63
|
+
- Updated dependencies [85ef90b]
|
|
64
|
+
- Updated dependencies [aedbbfa]
|
|
65
|
+
- Updated dependencies [ff89505]
|
|
66
|
+
- Updated dependencies [637f323]
|
|
67
|
+
- Updated dependencies [de3cbc6]
|
|
68
|
+
- Updated dependencies [c19bcf7]
|
|
69
|
+
- Updated dependencies [4474d04]
|
|
70
|
+
- Updated dependencies [183dc95]
|
|
71
|
+
- Updated dependencies [a1111e2]
|
|
72
|
+
- Updated dependencies [b42a961]
|
|
73
|
+
- Updated dependencies [61debef]
|
|
74
|
+
- Updated dependencies [9beaeff]
|
|
75
|
+
- Updated dependencies [29de0e1]
|
|
76
|
+
- Updated dependencies [f643c65]
|
|
77
|
+
- Updated dependencies [00c74e7]
|
|
78
|
+
- Updated dependencies [fef7375]
|
|
79
|
+
- Updated dependencies [e3d8fea]
|
|
80
|
+
- Updated dependencies [45e4d39]
|
|
81
|
+
- Updated dependencies [9eee594]
|
|
82
|
+
- Updated dependencies [7149d8d]
|
|
83
|
+
- Updated dependencies [822c2e8]
|
|
84
|
+
- Updated dependencies [979912c]
|
|
85
|
+
- Updated dependencies [7dcf4c0]
|
|
86
|
+
- Updated dependencies [4106a58]
|
|
87
|
+
- Updated dependencies [ad78bfc]
|
|
88
|
+
- Updated dependencies [0302f50]
|
|
89
|
+
- Updated dependencies [6ac697e]
|
|
90
|
+
- Updated dependencies [74db265]
|
|
91
|
+
- Updated dependencies [0ce418a]
|
|
92
|
+
- Updated dependencies [af90672]
|
|
93
|
+
- Updated dependencies [8387952]
|
|
94
|
+
- Updated dependencies [7f3b8da]
|
|
95
|
+
- Updated dependencies [905352b]
|
|
96
|
+
- Updated dependencies [599d04c]
|
|
97
|
+
- Updated dependencies [56041d0]
|
|
98
|
+
- Updated dependencies [3412597]
|
|
99
|
+
- Updated dependencies [5eca5d2]
|
|
100
|
+
- Updated dependencies [f2cda47]
|
|
101
|
+
- Updated dependencies [5de1555]
|
|
102
|
+
- Updated dependencies [cfd377a]
|
|
103
|
+
- Updated dependencies [1ed5a3e]
|
|
104
|
+
- @mastra/core@0.15.3
|
|
105
|
+
|
|
106
|
+
## 0.3.6-alpha.1
|
|
107
|
+
|
|
108
|
+
### Patch Changes
|
|
109
|
+
|
|
110
|
+
- [#7394](https://github.com/mastra-ai/mastra/pull/7394) [`f0dfcac`](https://github.com/mastra-ai/mastra/commit/f0dfcac4458bdf789b975e2d63e984f5d1e7c4d3) Thanks [@NikAiyer](https://github.com/NikAiyer)! - updated core peerdep
|
|
111
|
+
|
|
112
|
+
- Updated dependencies [[`7149d8d`](https://github.com/mastra-ai/mastra/commit/7149d8d4bdc1edf0008e0ca9b7925eb0b8b60dbe)]:
|
|
113
|
+
- @mastra/core@0.15.3-alpha.7
|
|
114
|
+
|
|
115
|
+
## 0.3.6-alpha.0
|
|
116
|
+
|
|
117
|
+
### Patch Changes
|
|
118
|
+
|
|
119
|
+
- [#7343](https://github.com/mastra-ai/mastra/pull/7343) [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e) Thanks [@LekoArts](https://github.com/LekoArts)! - Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
|
|
120
|
+
|
|
121
|
+
- Updated dependencies [[`85ef90b`](https://github.com/mastra-ai/mastra/commit/85ef90bb2cd4ae4df855c7ac175f7d392c55c1bf), [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e)]:
|
|
122
|
+
- @mastra/core@0.15.3-alpha.5
|
|
123
|
+
|
|
124
|
+
## 0.3.5
|
|
125
|
+
|
|
126
|
+
### Patch Changes
|
|
127
|
+
|
|
128
|
+
- [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
|
|
129
|
+
|
|
130
|
+
- Updated dependencies []:
|
|
131
|
+
- @mastra/core@0.15.2
|
|
132
|
+
|
|
133
|
+
## 0.3.4
|
|
134
|
+
|
|
135
|
+
### Patch Changes
|
|
136
|
+
|
|
137
|
+
- [`95b2aa9`](https://github.com/mastra-ai/mastra/commit/95b2aa908230919e67efcac0d69005a2d5745298) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdeps @mastra/core
|
|
138
|
+
|
|
139
|
+
- Updated dependencies []:
|
|
140
|
+
- @mastra/core@0.15.1
|
|
141
|
+
|
|
142
|
+
## 0.3.3
|
|
143
|
+
|
|
144
|
+
### Patch Changes
|
|
145
|
+
|
|
146
|
+
- [#6994](https://github.com/mastra-ai/mastra/pull/6994) [`0594a70`](https://github.com/mastra-ai/mastra/commit/0594a70ac948d306c7f38765b171c9535e6c78d4) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve type resolving for storage adapters
|
|
147
|
+
|
|
148
|
+
- Updated dependencies [[`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822), [`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6), [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01), [`9613558`](https://github.com/mastra-ai/mastra/commit/9613558e6475f4710e05d1be7553a32ee7bddc20)]:
|
|
149
|
+
- @mastra/core@0.15.0
|
|
150
|
+
|
|
151
|
+
## 0.3.3-alpha.0
|
|
152
|
+
|
|
153
|
+
### Patch Changes
|
|
154
|
+
|
|
155
|
+
- [#6994](https://github.com/mastra-ai/mastra/pull/6994) [`0594a70`](https://github.com/mastra-ai/mastra/commit/0594a70ac948d306c7f38765b171c9535e6c78d4) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve type resolving for storage adapters
|
|
156
|
+
|
|
157
|
+
- Updated dependencies [[`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01)]:
|
|
158
|
+
- @mastra/core@0.14.2-alpha.1
|
|
159
|
+
|
|
160
|
+
## 0.3.2
|
|
161
|
+
|
|
162
|
+
### Patch Changes
|
|
163
|
+
|
|
164
|
+
- [#6700](https://github.com/mastra-ai/mastra/pull/6700) [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02) Thanks [@gpanakkal](https://github.com/gpanakkal)! - Add `getMessagesById` method to `MastraStorage` adapters
|
|
165
|
+
|
|
166
|
+
- Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869), [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
|
|
167
|
+
- @mastra/core@0.14.1
|
|
168
|
+
|
|
169
|
+
## 0.3.2-alpha.0
|
|
170
|
+
|
|
171
|
+
### Patch Changes
|
|
172
|
+
|
|
173
|
+
- [#6700](https://github.com/mastra-ai/mastra/pull/6700) [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02) Thanks [@gpanakkal](https://github.com/gpanakkal)! - Add `getMessagesById` method to `MastraStorage` adapters
|
|
174
|
+
|
|
175
|
+
- Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
|
|
176
|
+
- @mastra/core@0.14.1-alpha.0
|
|
177
|
+
|
|
178
|
+
## 0.3.1
|
|
179
|
+
|
|
180
|
+
### Patch Changes
|
|
181
|
+
|
|
182
|
+
- 03997ae: Update peerdeps
|
|
183
|
+
- Updated dependencies [227c7e6]
|
|
184
|
+
- Updated dependencies [12cae67]
|
|
185
|
+
- Updated dependencies [fd3a3eb]
|
|
186
|
+
- Updated dependencies [6faaee5]
|
|
187
|
+
- Updated dependencies [4232b14]
|
|
188
|
+
- Updated dependencies [a89de7e]
|
|
189
|
+
- Updated dependencies [5a37d0c]
|
|
190
|
+
- Updated dependencies [4bde0cb]
|
|
191
|
+
- Updated dependencies [cf4f357]
|
|
192
|
+
- Updated dependencies [ad888a2]
|
|
193
|
+
- Updated dependencies [481751d]
|
|
194
|
+
- Updated dependencies [2454423]
|
|
195
|
+
- Updated dependencies [194e395]
|
|
196
|
+
- Updated dependencies [a722c0b]
|
|
197
|
+
- Updated dependencies [c30bca8]
|
|
198
|
+
- Updated dependencies [3b5fec7]
|
|
199
|
+
- Updated dependencies [a8f129d]
|
|
200
|
+
- @mastra/core@0.14.0
|
|
201
|
+
|
|
202
|
+
## 0.3.1-alpha.0
|
|
203
|
+
|
|
204
|
+
### Patch Changes
|
|
205
|
+
|
|
206
|
+
- 03997ae: Update peerdeps
|
|
207
|
+
- @mastra/core@0.14.0-alpha.7
|
|
208
|
+
|
|
209
|
+
## 0.3.0
|
|
210
|
+
|
|
211
|
+
### Minor Changes
|
|
212
|
+
|
|
213
|
+
- 8c5a2b0: feat(mssql): implement comprehensive scoring system, enhance storage operations & format storage into domains
|
|
214
|
+
- Add full CRUD operations for scoring system (getScoreById, saveScore, getScoresByScorerId, etc.)
|
|
215
|
+
- Implement message deletion functionality with thread timestamp updates
|
|
216
|
+
- Enhance thread management with sorting options and improved pagination
|
|
217
|
+
- Add batch trace insertion for improved performance
|
|
218
|
+
- Implement proper storage domain initialization with all operation bindings
|
|
219
|
+
- Enhance message parsing and formatting with better v1/v2 support
|
|
220
|
+
- Improve table operations with better foreign key handling
|
|
221
|
+
- Add float data type support in schema creation
|
|
222
|
+
- Enhance timestamp handling with proper SQL DateTime2 usage
|
|
223
|
+
- Update core dependency to latest version
|
|
224
|
+
- Format storage into domains and separate these into different files
|
|
225
|
+
|
|
226
|
+
BREAKING CHANGE: deleteMessages support is now enabled (was previously false)
|
|
227
|
+
|
|
228
|
+
### Patch Changes
|
|
229
|
+
|
|
230
|
+
- 2871020: update safelyParseJSON to check for value of param when handling parse
|
|
231
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
232
|
+
- Updated dependencies [cb36de0]
|
|
233
|
+
- Updated dependencies [d0496e6]
|
|
234
|
+
- Updated dependencies [a82b851]
|
|
235
|
+
- Updated dependencies [ea0c5f2]
|
|
236
|
+
- Updated dependencies [41a0a0e]
|
|
237
|
+
- Updated dependencies [2871020]
|
|
238
|
+
- Updated dependencies [94f4812]
|
|
239
|
+
- Updated dependencies [e202b82]
|
|
240
|
+
- Updated dependencies [e00f6a0]
|
|
241
|
+
- Updated dependencies [4a406ec]
|
|
242
|
+
- Updated dependencies [b0e43c1]
|
|
243
|
+
- Updated dependencies [5d377e5]
|
|
244
|
+
- Updated dependencies [1fb812e]
|
|
245
|
+
- Updated dependencies [35c5798]
|
|
246
|
+
- @mastra/core@0.13.0
|
|
247
|
+
|
|
248
|
+
## 0.3.0-alpha.1
|
|
249
|
+
|
|
250
|
+
### Patch Changes
|
|
251
|
+
|
|
252
|
+
- 2871020: update safelyParseJSON to check for value of param when handling parse
|
|
253
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
254
|
+
- Updated dependencies [cb36de0]
|
|
255
|
+
- Updated dependencies [a82b851]
|
|
256
|
+
- Updated dependencies [41a0a0e]
|
|
257
|
+
- Updated dependencies [2871020]
|
|
258
|
+
- Updated dependencies [4a406ec]
|
|
259
|
+
- Updated dependencies [5d377e5]
|
|
260
|
+
- @mastra/core@0.13.0-alpha.2
|
|
261
|
+
|
|
262
|
+
## 0.3.0-alpha.0
|
|
263
|
+
|
|
264
|
+
### Minor Changes
|
|
265
|
+
|
|
266
|
+
- 8c5a2b0: feat(mssql): implement comprehensive scoring system, enhance storage operations & format storage into domains
|
|
267
|
+
- Add full CRUD operations for scoring system (getScoreById, saveScore, getScoresByScorerId, etc.)
|
|
268
|
+
- Implement message deletion functionality with thread timestamp updates
|
|
269
|
+
- Enhance thread management with sorting options and improved pagination
|
|
270
|
+
- Add batch trace insertion for improved performance
|
|
271
|
+
- Implement proper storage domain initialization with all operation bindings
|
|
272
|
+
- Enhance message parsing and formatting with better v1/v2 support
|
|
273
|
+
- Improve table operations with better foreign key handling
|
|
274
|
+
- Add float data type support in schema creation
|
|
275
|
+
- Enhance timestamp handling with proper SQL DateTime2 usage
|
|
276
|
+
- Update core dependency to latest version
|
|
277
|
+
- Format storage into domains and separate these into different files
|
|
278
|
+
|
|
279
|
+
BREAKING CHANGE: deleteMessages support is now enabled (was previously false)
|
|
280
|
+
|
|
281
|
+
### Patch Changes
|
|
282
|
+
|
|
283
|
+
- Updated dependencies [ea0c5f2]
|
|
284
|
+
- Updated dependencies [b0e43c1]
|
|
285
|
+
- Updated dependencies [1fb812e]
|
|
286
|
+
- Updated dependencies [35c5798]
|
|
287
|
+
- @mastra/core@0.13.0-alpha.1
|
|
288
|
+
|
|
289
|
+
## 0.2.3
|
|
290
|
+
|
|
291
|
+
### Patch Changes
|
|
292
|
+
|
|
293
|
+
- 4230a13: dependencies updates:
|
|
294
|
+
- Updated dependency [`mssql@^10.0.4` ↗︎](https://www.npmjs.com/package/mssql/v/10.0.4) (from `^10.0.0`, in `dependencies`)
|
|
295
|
+
- f42c4c2: update peer deps for packages to latest core range
|
|
296
|
+
- Updated dependencies [510e2c8]
|
|
297
|
+
- Updated dependencies [2f72fb2]
|
|
298
|
+
- Updated dependencies [27cc97a]
|
|
299
|
+
- Updated dependencies [3f89307]
|
|
300
|
+
- Updated dependencies [9eda7d4]
|
|
301
|
+
- Updated dependencies [9d49408]
|
|
302
|
+
- Updated dependencies [41daa63]
|
|
303
|
+
- Updated dependencies [ad0a58b]
|
|
304
|
+
- Updated dependencies [254a36b]
|
|
305
|
+
- Updated dependencies [2ecf658]
|
|
306
|
+
- Updated dependencies [7a7754f]
|
|
307
|
+
- Updated dependencies [fc92d80]
|
|
308
|
+
- Updated dependencies [e0f73c6]
|
|
309
|
+
- Updated dependencies [0b89602]
|
|
310
|
+
- Updated dependencies [4d37822]
|
|
311
|
+
- Updated dependencies [23a6a7c]
|
|
312
|
+
- Updated dependencies [cda801d]
|
|
313
|
+
- Updated dependencies [a77c823]
|
|
314
|
+
- Updated dependencies [ff9c125]
|
|
315
|
+
- Updated dependencies [09bca64]
|
|
316
|
+
- Updated dependencies [b8efbb9]
|
|
317
|
+
- Updated dependencies [71466e7]
|
|
318
|
+
- Updated dependencies [0c99fbe]
|
|
319
|
+
- @mastra/core@0.12.0
|
|
320
|
+
|
|
321
|
+
## 0.2.3-alpha.1
|
|
322
|
+
|
|
323
|
+
### Patch Changes
|
|
324
|
+
|
|
325
|
+
- f42c4c2: update peer deps for packages to latest core range
|
|
326
|
+
- @mastra/core@0.12.0-alpha.5
|
|
327
|
+
|
|
328
|
+
## 0.2.3-alpha.0
|
|
329
|
+
|
|
330
|
+
### Patch Changes
|
|
331
|
+
|
|
332
|
+
- 4230a13: dependencies updates:
|
|
333
|
+
- Updated dependency [`mssql@^10.0.4` ↗︎](https://www.npmjs.com/package/mssql/v/10.0.4) (from `^10.0.0`, in `dependencies`)
|
|
334
|
+
- Updated dependencies [27cc97a]
|
|
335
|
+
- Updated dependencies [41daa63]
|
|
336
|
+
- Updated dependencies [254a36b]
|
|
337
|
+
- Updated dependencies [0b89602]
|
|
338
|
+
- Updated dependencies [4d37822]
|
|
339
|
+
- Updated dependencies [ff9c125]
|
|
340
|
+
- Updated dependencies [b8efbb9]
|
|
341
|
+
- Updated dependencies [71466e7]
|
|
342
|
+
- Updated dependencies [0c99fbe]
|
|
343
|
+
- @mastra/core@0.12.0-alpha.2
|
|
344
|
+
|
|
345
|
+
## 0.2.2
|
|
346
|
+
|
|
347
|
+
### Patch Changes
|
|
348
|
+
|
|
349
|
+
- ce088f5: Update all peerdeps to latest core
|
|
350
|
+
- @mastra/core@0.11.1
|
|
351
|
+
|
|
352
|
+
## 0.2.1
|
|
353
|
+
|
|
354
|
+
### Patch Changes
|
|
355
|
+
|
|
356
|
+
- 7ba91fa: Throw mastra errors methods not implemented yet
|
|
357
|
+
- 03745fa: mssql provider
|
|
358
|
+
- Updated dependencies [f248d53]
|
|
359
|
+
- Updated dependencies [2affc57]
|
|
360
|
+
- Updated dependencies [66e13e3]
|
|
361
|
+
- Updated dependencies [edd9482]
|
|
362
|
+
- Updated dependencies [18344d7]
|
|
363
|
+
- Updated dependencies [9d372c2]
|
|
364
|
+
- Updated dependencies [40c2525]
|
|
365
|
+
- Updated dependencies [e473f27]
|
|
366
|
+
- Updated dependencies [032cb66]
|
|
367
|
+
- Updated dependencies [703ac71]
|
|
368
|
+
- Updated dependencies [a723d69]
|
|
369
|
+
- Updated dependencies [7827943]
|
|
370
|
+
- Updated dependencies [5889a31]
|
|
371
|
+
- Updated dependencies [bf1e7e7]
|
|
372
|
+
- Updated dependencies [65e3395]
|
|
373
|
+
- Updated dependencies [4933192]
|
|
374
|
+
- Updated dependencies [d1c77a4]
|
|
375
|
+
- Updated dependencies [bea9dd1]
|
|
376
|
+
- Updated dependencies [dcd4802]
|
|
377
|
+
- Updated dependencies [cbddd18]
|
|
378
|
+
- Updated dependencies [7ba91fa]
|
|
379
|
+
- @mastra/core@0.11.0
|
|
380
|
+
|
|
381
|
+
## 0.2.1-alpha.1
|
|
382
|
+
|
|
383
|
+
### Patch Changes
|
|
384
|
+
|
|
385
|
+
- 7ba91fa: Throw mastra errors methods not implemented yet
|
|
386
|
+
- Updated dependencies [f248d53]
|
|
387
|
+
- Updated dependencies [2affc57]
|
|
388
|
+
- Updated dependencies [66e13e3]
|
|
389
|
+
- Updated dependencies [edd9482]
|
|
390
|
+
- Updated dependencies [18344d7]
|
|
391
|
+
- Updated dependencies [9d372c2]
|
|
392
|
+
- Updated dependencies [40c2525]
|
|
393
|
+
- Updated dependencies [e473f27]
|
|
394
|
+
- Updated dependencies [032cb66]
|
|
395
|
+
- Updated dependencies [703ac71]
|
|
396
|
+
- Updated dependencies [a723d69]
|
|
397
|
+
- Updated dependencies [5889a31]
|
|
398
|
+
- Updated dependencies [65e3395]
|
|
399
|
+
- Updated dependencies [4933192]
|
|
400
|
+
- Updated dependencies [d1c77a4]
|
|
401
|
+
- Updated dependencies [bea9dd1]
|
|
402
|
+
- Updated dependencies [dcd4802]
|
|
403
|
+
- Updated dependencies [7ba91fa]
|
|
404
|
+
- @mastra/core@0.11.0-alpha.2
|
|
405
|
+
|
|
406
|
+
## 0.2.1-alpha.0
|
|
407
|
+
|
|
408
|
+
### Patch Changes
|
|
409
|
+
|
|
410
|
+
- 03745fa: mssql provider
|
|
411
|
+
- Updated dependencies [7827943]
|
|
412
|
+
- Updated dependencies [bf1e7e7]
|
|
413
|
+
- Updated dependencies [cbddd18]
|
|
414
|
+
- @mastra/core@0.11.0-alpha.0
|
|
415
|
+
|
|
416
|
+
## 0.1.0
|
|
417
|
+
|
|
418
|
+
- Initial implementation
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Apache License 2.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Kepler Software, Inc.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# @mastra/mssql
|
|
2
|
+
|
|
3
|
+
Microsoft SQL Server implementation for Mastra, providing general storage capabilities with connection pooling and transaction support.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @mastra/mssql
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Prerequisites
|
|
12
|
+
|
|
13
|
+
- Microsoft SQL Server 2016 or higher
|
|
14
|
+
- User with privileges to create tables and schemas (if needed)
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
### Storage
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { MSSQLStore } from '@mastra/mssql';
|
|
22
|
+
|
|
23
|
+
const store = new MSSQLStore({
|
|
24
|
+
server: 'localhost',
|
|
25
|
+
port: 1433,
|
|
26
|
+
database: 'mastra',
|
|
27
|
+
user: 'sa',
|
|
28
|
+
password: 'yourStrong(!)Password',
|
|
29
|
+
// options: { encrypt: true, trustServerCertificate: true }, // Optional
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
// Create a thread
|
|
33
|
+
await store.saveThread({
|
|
34
|
+
id: 'thread-123',
|
|
35
|
+
resourceId: 'resource-456',
|
|
36
|
+
title: 'My Thread',
|
|
37
|
+
metadata: { key: 'value' },
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// Add messages to thread
|
|
41
|
+
await store.saveMessages([
|
|
42
|
+
{
|
|
43
|
+
id: 'msg-789',
|
|
44
|
+
threadId: 'thread-123',
|
|
45
|
+
role: 'user',
|
|
46
|
+
type: 'text',
|
|
47
|
+
content: [{ type: 'text', text: 'Hello' }],
|
|
48
|
+
resourceId: 'resource-456',
|
|
49
|
+
createdAt: new Date(),
|
|
50
|
+
},
|
|
51
|
+
]);
|
|
52
|
+
|
|
53
|
+
// Query threads and messages
|
|
54
|
+
const savedThread = await store.getThreadById({ threadId: 'thread-123' });
|
|
55
|
+
const messages = await store.getMessages({ threadId: 'thread-123' });
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Configuration
|
|
59
|
+
|
|
60
|
+
The MSSQL store can be initialized with either:
|
|
61
|
+
|
|
62
|
+
- `connectionString`: Microsoft SQL Server connection string
|
|
63
|
+
- Configuration object with server, port, database, user, and password
|
|
64
|
+
|
|
65
|
+
Connection pool settings are managed by the [mssql](https://www.npmjs.com/package/mssql) package.
|
|
66
|
+
|
|
67
|
+
## Features
|
|
68
|
+
|
|
69
|
+
- Thread and message storage with JSON support
|
|
70
|
+
- Atomic transactions for data consistency
|
|
71
|
+
- Efficient batch operations
|
|
72
|
+
- Rich metadata support
|
|
73
|
+
- Timestamp tracking
|
|
74
|
+
- Cascading deletes (emulated)
|
|
75
|
+
|
|
76
|
+
## Storage Methods
|
|
77
|
+
|
|
78
|
+
- `saveThread({ thread })`: Create or update a thread
|
|
79
|
+
- `getThreadById({ threadId })`: Get a thread by ID
|
|
80
|
+
- `deleteThread({ threadId })`: Delete a thread and its messages
|
|
81
|
+
- `saveMessages({ messages })`: Save multiple messages in a transaction
|
|
82
|
+
- `getMessages({ threadId })`: Get all messages for a thread
|
|
83
|
+
- `updateMessages({ messages })`: Update messages by ID
|
|
84
|
+
- `getThreadsByResourceIdPaginated({ resourceId, page, perPage })`: Paginated thread listing
|
|
85
|
+
- `getMessagesPaginated({ threadId, selectBy })`: Paginated message listing
|
|
86
|
+
- `clearTable({ tableName })`: Remove all rows from a table (with cascade)
|
|
87
|
+
- `createTable({ tableName, schema })`: Create a table if it does not exist
|
|
88
|
+
- `alterTable({ tableName, schema, ifNotExists })`: Add columns if they do not exist
|
|
89
|
+
- `saveResource({ resource })`: Save a resource
|
|
90
|
+
- `getResourceById({ resourceId })`: Get a resource by ID
|
|
91
|
+
- `updateResource({ resourceId, ... })`: Update a resource
|
|
92
|
+
|
|
93
|
+
## Related Links
|
|
94
|
+
|
|
95
|
+
- [Microsoft SQL Server Documentation](https://docs.microsoft.com/en-us/sql/sql-server/)
|
|
96
|
+
- [node-mssql Documentation](https://www.npmjs.com/package/mssql)
|