@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.
- package/.turbo/turbo-build.log +23 -0
- package/CHANGELOG.md +15 -0
- package/LICENSE.md +15 -0
- package/README.md +96 -0
- package/dist/_tsup-dts-rollup.d.cts +213 -0
- package/dist/_tsup-dts-rollup.d.ts +213 -0
- package/dist/index.cjs +1752 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1746 -0
- package/docker-compose.yaml +14 -0
- package/eslint.config.js +6 -0
- package/package.json +50 -0
- package/src/index.ts +2 -0
- package/src/storage/index.test.ts +2239 -0
- package/src/storage/index.ts +2044 -0
- package/tsconfig.json +5 -0
- package/vitest.config.ts +12 -0
|
@@ -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
|
package/eslint.config.js
ADDED
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