meadow 2.0.13 → 2.0.15

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.
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "optOut": false,
3
- "lastUpdateCheck": 1690759243854
3
+ "lastUpdateCheck": 1699195015190
4
4
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "numericVersion": 10000,
3
3
  "releaseNotes": "https://vscode-sqltools.mteixeira.dev/changelog#v-1-0-0",
4
- "run": 1690759233978,
4
+ "run": 1699195007876,
5
5
  "updated": false,
6
6
  "version": "1.0.0",
7
7
  "lastNotificationDate": 0,
package/README.md CHANGED
@@ -119,6 +119,20 @@ meadow.doRead(queryDescription,
119
119
  ```
120
120
 
121
121
 
122
+ ## MSSQL Docker Image
123
+
124
+ To run the Microsoft SQL Server tests, you can use the free image on dockerhub.
125
+
126
+ ```
127
+ docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=1234567890abc." -p 14333:1433 --name meadow-mssql-test --hostname meadowsqltest -d mcr.microsoft.com/mssql/server:2022-latest
128
+ ```
129
+
130
+ Then you need to create the test database:
131
+
132
+ ```
133
+ docker exec meadow-mssql-test sh -c "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P '1234567890abc.' -Q 'CREATE DATABASE bookstore;'"
134
+ ```
135
+
122
136
  ### Docker Development Environment
123
137
 
124
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meadow",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "A data access library.",
5
5
  "main": "source/Meadow.js",
6
6
  "scripts": {
@@ -46,28 +46,28 @@
46
46
  },
47
47
  "homepage": "https://github.com/stevenvelozo/meadow",
48
48
  "devDependencies": {
49
- "alasql": "^4.1.3",
49
+ "alasql": "^4.1.10",
50
50
  "browserify": "^17.0.0",
51
- "chai": "4.3.7",
52
- "fable": "^3.0.75",
51
+ "chai": "4.3.10",
52
+ "fable": "^3.0.96",
53
53
  "gulp": "^4.0.2",
54
54
  "gulp-babel": "^8.0.0",
55
55
  "gulp-sourcemaps": "^3.0.0",
56
56
  "gulp-terser": "^2.1.0",
57
57
  "gulp-util": "^3.0.8",
58
- "meadow-connection-mssql": "^1.0.4",
58
+ "meadow-connection-mssql": "^1.0.9",
59
59
  "meadow-connection-mysql": "^1.0.4",
60
60
  "mocha": "10.2.0",
61
- "mysql2": "^3.5.2",
61
+ "mysql2": "^3.6.3",
62
62
  "nyc": "^15.1.0",
63
63
  "vinyl-buffer": "^1.0.1",
64
64
  "vinyl-source-stream": "^2.0.0"
65
65
  },
66
66
  "dependencies": {
67
- "async": "3.2.4",
67
+ "async": "3.2.5",
68
68
  "foxhound": "^2.0.10",
69
69
  "is-my-json-valid": "2.20.6",
70
- "npm-check-updates": "^16.10.17",
70
+ "npm-check-updates": "^16.14.6",
71
71
  "simple-get": "^4.0.1"
72
72
  }
73
73
  }
@@ -72,7 +72,12 @@ var MeadowProvider = function ()
72
72
  let tmpParameterEntry = false;
73
73
  if ((tmpParameterType === 'Char') || (tmpParameterType === 'VarChar'))
74
74
  {
75
- tmpParameterEntry = _Fable.MeadowMSSQLProvider.MSSQL[tmpParameterType](255);
75
+ tmpParameterEntry = _Fable.MeadowMSSQLProvider.MSSQL[tmpParameterType](_Fable.MeadowMSSQLProvider.MSSQL.Max);
76
+ }
77
+ // TODO: There is a bug with Text and schemata in ArtifactTypes at least.
78
+ else if (tmpParameterType === 'Text')
79
+ {
80
+ tmpParameterEntry = _Fable.MeadowMSSQLProvider.MSSQL.VarChar(_Fable.MeadowMSSQLProvider.MSSQL.Max);
76
81
  }
77
82
  else
78
83
  {
@@ -102,7 +107,7 @@ var MeadowProvider = function ()
102
107
 
103
108
  if (pQuery.AllowIdentityInsert)
104
109
  {
105
- tmpQueryBody = `SET IDENTITY_INSERT ${pQuery.parameters.scope} ON; \n${tmpQueryBody} \nSET IDENTITY_INSERT ${pQuery.parameters.scope} OFF;`
110
+ tmpQueryBody = `SET IDENTITY_INSERT [${pQuery.parameters.scope}] ON; \n${tmpQueryBody} \nSET IDENTITY_INSERT [${pQuery.parameters.scope}] OFF;`
106
111
  }
107
112
 
108
113
  tmpPreparedStatement.prepare(tmpQueryBody,
@@ -33,7 +33,7 @@ var tmpFableSettings = (
33
33
  "MSSQL":
34
34
  {
35
35
  "server": "127.0.0.1",
36
- "port": 3306,
36
+ "port": 14333,
37
37
  "user": "sa",
38
38
  "password": "1234567890abc.",
39
39
  "database": "bookstore",
@@ -149,6 +149,15 @@ suite
149
149
  );
150
150
  },
151
151
  function (fStageComplete)
152
+ {
153
+ libFable.MeadowMSSQLProvider.pool.query(`
154
+ IF NOT EXISTS(SELECT * FROM sys.databases WHERE name = 'bookstore')
155
+ BEGIN
156
+ CREATE DATABASE [bookstore]
157
+ END
158
+ `).then(()=>{ return fStageComplete(); }).catch(fStageComplete);
159
+ },
160
+ function (fStageComplete)
152
161
  {
153
162
  libFable.MeadowMSSQLProvider.pool.query('DROP TABLE IF EXISTS FableTest').then(()=>{ return fStageComplete(); }).catch(fStageComplete);
154
163
  },
@@ -195,8 +204,8 @@ suite
195
204
  suiteTeardown((fDone) =>
196
205
  {
197
206
  //_SQLConnectionPool.end(fDone);
198
- }
199
- );
207
+ return fDone();
208
+ });
200
209
 
201
210
  suite
202
211
  (