@mastra/mssql 0.2.1-alpha.0

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.
@@ -0,0 +1,14 @@
1
+ services:
2
+ mssql:
3
+ image: mcr.microsoft.com/mssql/server:2022-latest
4
+ environment:
5
+ - ACCEPT_EULA=Y
6
+ - SA_PASSWORD=Your_password123
7
+ ports:
8
+ - '1433:1433'
9
+ healthcheck:
10
+ test: ['CMD-SHELL', 'echo > /dev/tcp/localhost/1433']
11
+ interval: 10s
12
+ timeout: 5s
13
+ retries: 10
14
+ start_period: 20s
@@ -0,0 +1,6 @@
1
+ import { createConfig } from '@internal/lint/eslint';
2
+
3
+ const config = await createConfig();
4
+
5
+ /** @type {import("eslint").Linter.Config[]} */
6
+ export default [...config];
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@mastra/mssql",
3
+ "version": "0.2.1-alpha.0",
4
+ "description": "MSSQL provider for Mastra - db storage capabilities",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.cts",
16
+ "default": "./dist/index.cjs"
17
+ }
18
+ },
19
+ "./package.json": "./package.json"
20
+ },
21
+ "license": "MIT",
22
+ "dependencies": {
23
+ "mssql": "^10.0.0"
24
+ },
25
+ "devDependencies": {
26
+ "@microsoft/api-extractor": "^7.52.8",
27
+ "@types/mssql": "^9.1.7",
28
+ "@types/node": "^20.19.0",
29
+ "eslint": "^9.29.0",
30
+ "tsup": "^8.5.0",
31
+ "typescript": "^5.8.3",
32
+ "vitest": "^3.2.4",
33
+ "@internal/lint": "0.0.20",
34
+ "@mastra/core": "0.11.0-alpha.0",
35
+ "@internal/storage-test-utils": "0.0.16"
36
+ },
37
+ "peerDependencies": {
38
+ "@mastra/core": ">=0.10.7-0 <0.11.0-0"
39
+ },
40
+ "scripts": {
41
+ "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
42
+ "build:watch": "pnpm build --watch",
43
+ "pretest": "docker compose up -d && (for i in $(seq 1 30); do docker compose ps | grep mssql && break || sleep 1; done) && (for i in $(seq 1 30); do docker inspect --format='{{.State.Health.Status}}' $(docker compose ps -q mssql) | grep healthy && break || sleep 2; done)",
44
+ "test": "vitest run",
45
+ "pretest:watch": "docker compose up -d",
46
+ "test:watch": "vitest watch",
47
+ "posttest:watch": "docker compose down -v",
48
+ "lint": "eslint ."
49
+ }
50
+ }
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ // Entry point for mastra-mssql store
2
+ export * from './storage';