foxhound 2.0.10 → 2.0.12

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,6 +1,6 @@
1
1
  # Use the codercom/code-server image
2
2
  FROM codercom/code-server:latest
3
- MAINTAINER steven velozo
3
+ LABEL org.opencontainers.image.authors="steven@velozo.com"
4
4
 
5
5
  VOLUME /home/coder/.config
6
6
  VOLUME /home/coder/.vscode
@@ -9,13 +9,7 @@ RUN echo "...installing debian dependencies..."
9
9
  RUN sudo apt update
10
10
  RUN sudo apt install vim curl tmux -y
11
11
 
12
- RUN echo "Building RETOLD development image..."
13
-
14
-
15
- RUN echo "...mapping library specific volumes..."
16
- # Volume mappings for RETOLD:Foxhound library
17
- VOLUME /home/coder/foxhound
18
- # VOLUME /home/coder/foxhound/node_modules
12
+ RUN echo "Building development image..."
19
13
 
20
14
  RUN echo "...installing vscode extensions..."
21
15
 
@@ -55,8 +49,10 @@ RUN code-server --install-extension eamodio.gitlens
55
49
  # An easy on the eyes color theme
56
50
  # RUN code-server --install-extension daylerees.rainglow
57
51
 
58
- # MySQL2 CLient
59
- RUN code-server --install-extension cweijan.vscode-mysql-client2
52
+ RUN echo "...mapping library specific volumes..."
53
+
54
+ # Volume mapping for code
55
+ VOLUME /home/coder/foxhound
60
56
 
61
57
  SHELL ["/bin/bash", "-c"]
62
58
  USER coder
package/package.json CHANGED
@@ -1,63 +1,55 @@
1
1
  {
2
- "name": "foxhound",
3
- "version": "2.0.10",
4
- "description": "A Database Query generation library.",
5
- "main": "source/FoxHound.js",
6
- "scripts": {
7
- "start": "node source/FoxHound.js",
8
- "coverage": "./node_modules/.bin/nyc --reporter=lcov --reporter=text-lcov ./node_modules/mocha/bin/_mocha -- -u tdd -R spec",
9
- "test": "./node_modules/.bin/mocha -u tdd -R spec",
10
- "build": "./node_modules/.bin/gulp build",
11
- "docker-dev-build-image": "docker build ./ -f Dockerfile_LUXURYCode -t retold/foxhound:local",
12
- "docker-dev-run": "docker run -it -d --name foxhound-dev -p 127.0.0.1:12346:8080 -v \"$PWD/.config:/home/coder/.config\" -v \"$PWD:/home/coder/foxhound\" -u \"$(id -u):$(id -g)\" -e \"DOCKER_USER=$USER\" retold/foxhound:local"
13
- },
14
- "mocha": {
15
- "diff": true,
16
- "extension": [
17
- "js"
2
+ "name": "foxhound",
3
+ "version": "2.0.12",
4
+ "description": "A Database Query generation library.",
5
+ "main": "source/FoxHound.js",
6
+ "scripts": {
7
+ "start": "node source/FoxHound.js",
8
+ "test": "npx mocha -u tdd -R spec",
9
+ "tests": "npx mocha -u tdd --exit -R spec --grep",
10
+ "coverage": "npx nyc --reporter=lcov --reporter=text-lcov npx mocha -- -u tdd -R spec",
11
+ "build": "npx quack build",
12
+ "docker-dev-build": "docker build ./ -f Dockerfile_LUXURYCode -t foxhound-image:local",
13
+ "docker-dev-run": "docker run -it -d --name foxhound-dev -p 24238:8080 -p 42889:8086 -v \"$PWD/.config:/home/coder/.config\" -v \"$PWD:/home/coder/foxhound\" -u \"$(id -u):$(id -g)\" -e \"DOCKER_USER=$USER\" foxhound-image:local",
14
+ "docker-dev-shell": "docker exec -it foxhound-dev /bin/bash"
15
+ },
16
+ "mocha": {
17
+ "diff": true,
18
+ "extension": [
19
+ "js"
20
+ ],
21
+ "package": "./package.json",
22
+ "reporter": "spec",
23
+ "slow": "75",
24
+ "timeout": "5000",
25
+ "ui": "tdd",
26
+ "watch-files": [
27
+ "source/**/*.js",
28
+ "test/**/*.js"
29
+ ],
30
+ "watch-ignore": [
31
+ "lib/vendor"
32
+ ]
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/stevenvelozo/foxhound.git"
37
+ },
38
+ "keywords": [
39
+ "orm",
40
+ "dal",
41
+ "query"
18
42
  ],
19
- "package": "./package.json",
20
- "reporter": "spec",
21
- "slow": "75",
22
- "timeout": "5000",
23
- "ui": "tdd",
24
- "watch-files": [
25
- "source/**/*.js",
26
- "test/**/*.js"
27
- ],
28
- "watch-ignore": [
29
- "lib/vendor"
30
- ]
31
- },
32
- "repository": {
33
- "type": "git",
34
- "url": "https://github.com/stevenvelozo/foxhound.git"
35
- },
36
- "keywords": [
37
- "orm",
38
- "dal",
39
- "query"
40
- ],
41
- "author": "Steven Velozo <steven@velozo.com> (http://velozo.com/)",
42
- "license": "MIT",
43
- "bugs": {
44
- "url": "https://github.com/stevenvelozo/foxhound/issues"
45
- },
46
- "homepage": "https://github.com/stevenvelozo/foxhound",
47
- "devDependencies": {
48
- "browserify": "^17.0.0",
49
- "chai": "4.3.7",
50
- "gulp": "^4.0.2",
51
- "gulp-babel": "^8.0.0",
52
- "gulp-sourcemaps": "^3.0.0",
53
- "gulp-terser": "^2.1.0",
54
- "gulp-util": "^3.0.8",
55
- "mocha": "10.2.0",
56
- "nyc": "^15.1.0",
57
- "vinyl-buffer": "^1.0.1",
58
- "vinyl-source-stream": "^2.0.0"
59
- },
60
- "dependencies": {
61
- "fable": "^3.0.11"
62
- }
43
+ "author": "Steven Velozo <steven@velozo.com> (http://velozo.com/)",
44
+ "license": "MIT",
45
+ "bugs": {
46
+ "url": "https://github.com/stevenvelozo/foxhound/issues"
47
+ },
48
+ "homepage": "https://github.com/stevenvelozo/foxhound",
49
+ "devDependencies": {
50
+ "quackage": "^1.0.42"
51
+ },
52
+ "dependencies": {
53
+ "fable": "^3.1.18"
54
+ }
63
55
  }
@@ -2,8 +2,9 @@ getDialects = () =>
2
2
  {
3
3
  let tmpDialects = {};
4
4
 
5
- tmpDialects.ALASQL = require('./dialects/ALASQL/FoxHound-Dialect-ALASQL.js');
6
5
  tmpDialects.English = require('./dialects/English/FoxHound-Dialect-English.js');
6
+ tmpDialects.SQLite = require('./dialects/SQLite/FoxHound-Dialect-SQLite.js');
7
+ tmpDialects.ALASQL = require('./dialects/ALASQL/FoxHound-Dialect-ALASQL.js');
7
8
  tmpDialects.MeadowEndpoints = require('./dialects/MeadowEndpoints/FoxHound-Dialect-MeadowEndpoints.js');
8
9
  tmpDialects.MySQL = require('./dialects/MySQL/FoxHound-Dialect-MySQL.js');
9
10
  tmpDialects.MSSQL = require('./dialects/MicrosoftSQL/FoxHound-Dialect-MSSQL.js');
@@ -471,12 +471,12 @@ var FoxHoundDialectMSSQL = function(pFable)
471
471
  }
472
472
  }
473
473
 
474
- if (pParameters.query.disableAutoDateStamp &&
475
- tmpSchemaEntry.Type === 'UpdateDate')
476
- {
477
- // This is ignored if flag is set
478
- continue;
479
- }
474
+ // if (pParameters.query.disableAutoDateStamp &&
475
+ // tmpSchemaEntry.Type === 'UpdateDate')
476
+ // {
477
+ // // This is ignored if flag is set
478
+ // continue;
479
+ // }
480
480
  if (pParameters.query.disableAutoUserStamp &&
481
481
  tmpSchemaEntry.Type === 'UpdateIDUser')
482
482
  {
@@ -502,7 +502,15 @@ var FoxHoundDialectMSSQL = function(pFable)
502
502
  {
503
503
  case 'UpdateDate':
504
504
  // This is an autoidentity, so we don't parameterize it and just pass in NULL
505
- tmpUpdate += ' ['+tmpColumn+'] = ' + SQL_NOW;
505
+ if (pParameters.query.disableAutoDateStamp)
506
+ {
507
+ var tmpColumnParameter = 'MANUAL_UpdateDate'
508
+ tmpUpdate += ' ['+tmpColumn+'] = @MANUAL_UpdateDate';
509
+ }
510
+ else
511
+ {
512
+ tmpUpdate += ' ['+tmpColumn+'] = ' + SQL_NOW;
513
+ }
506
514
  break;
507
515
  case 'UpdateIDUser':
508
516
  // This is the user ID, which we hope is in the query.