-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
50 lines (50 loc) · 2.43 KB
/
package.json
File metadata and controls
50 lines (50 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"name": "@conwell/sql-soar",
"version": "3.1.1",
"description": "A SQL build and query tool for node.js.",
"engines": {
"node": ">=14"
},
"main": "lib/soar.js",
"repository": {
"type": "git",
"url": "https://github.com/benlue/sql-soar.git"
},
"keywords": [
"ORM",
"mySQL",
"postgresql",
"sql"
],
"author": {
"name": "Ben Lue, Conwell Inc."
},
"license": "MIT",
"readmeFilename": "README.md",
"scripts": {
"test": "npm run test:mysql && npm run test:postgresql && npm run test:shared",
"test:simple": "mocha test/postgresql/testQuery.js --timeout 10000",
"test:mysql": "mocha test/mysql/*.js --timeout 10000",
"test:postgresql": "mocha test/postgresql/*.js --timeout 10000",
"test:shared": "mocha test/shared/**/*.js --timeout 10000",
"test:all": "npm run test:mysql && npm run test:postgresql && npm run test:shared",
"start:postgres": "podman run -d --name postgres-test -e POSTGRES_DB=soar -e POSTGRES_USER=soaruser -e POSTGRES_PASSWORD=1234soar -p 5432:5432 -v postgres-data:/var/lib/postgresql/data postgres:16",
"stop:postgres": "podman stop postgres-test && podman rm postgres-test",
"setup:postgres": "podman exec -i postgres-test psql -U soaruser -d soar < test/sampleData/postgresql/schema.sql && podman exec -i postgres-test psql -U soaruser -d soar < test/sampleData/postgresql/sampleData.sql",
"start:mysql": "podman run -d --name mysql-test -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=soar -e MYSQL_USER=testuser -e MYSQL_PASSWORD=testpass -p 3306:3306 -v mysql-data:/var/lib/mysql mysql:8.0",
"stop:mysql": "podman stop mysql-test && podman rm mysql-test",
"setup:mysql": "podman exec -i mysql-test mysql -u testuser -ptestpass soar < test/sampleData/mysql/schema.sql && podman exec -i mysql-test mysql -u testuser -ptestpass soar < test/sampleData/mysql/sampleData.sql",
"setup:mysql:memory": "podman exec -i mysql-test mysql -u testuser -ptestpass soar < test/sampleData/mysql/schema_memory.sql && podman exec -i mysql-test mysql -u testuser -ptestpass soar < test/sampleData/mysql/sampleData.sql",
"test:pg:mem": "mocha test/inmemory/postgresql/*.js --timeout 15000",
"test:mysql:mem": "mocha test/inmemory/mysql/*.js --timeout 60000"
},
"devDependencies": {
"@electric-sql/pglite": "^0.2.0",
"mocha": "^10.2.0",
"mysql-memory-server": "^1.14.0"
},
"dependencies": {
"mysql2": "^3.6.0",
"pg": "^8.11.3"
}
}