@mastra/mssql 1.7.3 → 1.7.4-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.
- package/LICENSE.md +6 -4
- package/dist/docs/SKILL.md +2 -2
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/integrations-databases-mssql.md +2 -0
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/storage/db/index.d.ts.map +1 -1
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/dist/storage/domains/background-tasks/index.d.ts.map +1 -1
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/workflow-definitions/index.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +8 -9
- package/CHANGELOG.md +0 -2767
package/LICENSE.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Portions of this software are licensed as follows:
|
|
2
2
|
|
|
3
|
-
- All content that resides under any directory named
|
|
3
|
+
- All content that resides under any directory named `ee/` within this
|
|
4
4
|
repository, including but not limited to:
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
|
|
5
|
+
- `@mastra/core/auth/ee`
|
|
6
|
+
- `@mastra/core/agent-builder/ee`
|
|
7
|
+
- `@mastra/editor/ee`
|
|
8
|
+
|
|
9
|
+
is licensed under the license defined in [`ee/LICENSE`](https://github.com/mastra-ai/mastra/blob/main/ee/LICENSE).
|
|
8
10
|
|
|
9
11
|
- All third-party components incorporated into the Mastra Software are
|
|
10
12
|
licensed under the original license provided by the owner of the
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-mssql
|
|
|
3
3
|
description: Documentation for @mastra/mssql. Use when working with @mastra/mssql APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/mssql"
|
|
6
|
-
version: "1.7.
|
|
6
|
+
version: "1.7.4-alpha.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -16,7 +16,7 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
16
16
|
|
|
17
17
|
### Integrations
|
|
18
18
|
|
|
19
|
-
- [MSSQL](references/integrations-databases-mssql.md) -
|
|
19
|
+
- [MSSQL](references/integrations-databases-mssql.md) - Persist Mastra application data in Microsoft SQL Server with MSSQL connection options, schema initialization, and direct database or pool access.
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
|
package/dist/index.cjs
CHANGED
|
@@ -4156,6 +4156,12 @@ function rowToDefinition(row) {
|
|
|
4156
4156
|
if (stateSchema != null) def.stateSchema = stateSchema;
|
|
4157
4157
|
const requestContextSchema = parseJson(row.requestContextSchema, "requestContextSchema", row.id);
|
|
4158
4158
|
if (requestContextSchema != null) def.requestContextSchema = requestContextSchema;
|
|
4159
|
+
try {
|
|
4160
|
+
const schedule = parseJson(row.schedule, "schedule", row.id);
|
|
4161
|
+
if (schedule != null) def.schedule = schedule;
|
|
4162
|
+
} catch {
|
|
4163
|
+
def.schedule = row.schedule;
|
|
4164
|
+
}
|
|
4159
4165
|
if (row.authorId != null) def.authorId = String(row.authorId);
|
|
4160
4166
|
return def;
|
|
4161
4167
|
}
|
|
@@ -4190,6 +4196,11 @@ var WorkflowDefinitionsMSSQL = class WorkflowDefinitionsMSSQL extends _mastra_co
|
|
|
4190
4196
|
tableName: _mastra_core_storage.TABLE_WORKFLOW_DEFINITIONS,
|
|
4191
4197
|
schema: _mastra_core_storage.WORKFLOW_DEFINITIONS_SCHEMA
|
|
4192
4198
|
});
|
|
4199
|
+
await this.db.alterTable({
|
|
4200
|
+
tableName: _mastra_core_storage.TABLE_WORKFLOW_DEFINITIONS,
|
|
4201
|
+
schema: _mastra_core_storage.WORKFLOW_DEFINITIONS_SCHEMA,
|
|
4202
|
+
ifNotExists: ["schedule"]
|
|
4203
|
+
});
|
|
4193
4204
|
await this.createDefaultIndexes();
|
|
4194
4205
|
await this.createCustomIndexes();
|
|
4195
4206
|
}
|
|
@@ -4234,6 +4245,7 @@ var WorkflowDefinitionsMSSQL = class WorkflowDefinitionsMSSQL extends _mastra_co
|
|
|
4234
4245
|
stateSchema: input.stateSchema ?? null,
|
|
4235
4246
|
requestContextSchema: input.requestContextSchema ?? null,
|
|
4236
4247
|
graph: input.graph,
|
|
4248
|
+
schedule: "schedule" in input ? input.schedule ?? null : null,
|
|
4237
4249
|
status: "active",
|
|
4238
4250
|
source: "storage",
|
|
4239
4251
|
authorId: "authorId" in input ? input.authorId ?? null : null,
|
|
@@ -4264,6 +4276,7 @@ var WorkflowDefinitionsMSSQL = class WorkflowDefinitionsMSSQL extends _mastra_co
|
|
|
4264
4276
|
if ("stateSchema" in input && input.stateSchema !== void 0) data.stateSchema = input.stateSchema;
|
|
4265
4277
|
if ("requestContextSchema" in input && input.requestContextSchema !== void 0) data.requestContextSchema = input.requestContextSchema;
|
|
4266
4278
|
if ("graph" in input && input.graph !== void 0) data.graph = input.graph;
|
|
4279
|
+
if ("schedule" in input && input.schedule !== void 0) data.schedule = input.schedule;
|
|
4267
4280
|
if ("status" in input && input.status !== void 0) data.status = input.status;
|
|
4268
4281
|
if ("authorId" in input && input.authorId !== void 0) data.authorId = input.authorId;
|
|
4269
4282
|
await this.db.update({
|