@opra/sqb 0.31.2 → 0.31.4

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.
@@ -48,15 +48,15 @@ common_1.TypeDocumentFactory.prototype.prepareDataTypeInitArguments = async func
48
48
  fieldSchema.type = 'bigint';
49
49
  break;
50
50
  case connect_1.DataType.DATE:
51
- if (!fieldSchema.type || (detectType && (fieldSchema.type === 'timestamp' || fieldSchema.type === 'string')))
51
+ if (!fieldSchema.type || (detectType && (fieldSchema.type === 'datetime' || fieldSchema.type === 'string')))
52
52
  fieldSchema.type = 'date';
53
53
  break;
54
54
  case connect_1.DataType.TIMESTAMPTZ:
55
- if (!fieldSchema.type || (detectType && (fieldSchema.type === 'timestamp' || fieldSchema.type === 'string')))
55
+ if (!fieldSchema.type || (detectType && (fieldSchema.type === 'datetime' || fieldSchema.type === 'string')))
56
56
  fieldSchema.type = 'timestamptz';
57
57
  break;
58
58
  case connect_1.DataType.TIME:
59
- if (!fieldSchema.type || (detectType && (fieldSchema.type === 'timestamp' || fieldSchema.type === 'string')))
59
+ if (!fieldSchema.type || (detectType && (fieldSchema.type === 'datetime' || fieldSchema.type === 'string')))
60
60
  fieldSchema.type = 'time';
61
61
  break;
62
62
  case connect_1.DataType.BINARY:
@@ -80,7 +80,7 @@ common_1.TypeDocumentFactory.prototype.prepareDataTypeInitArguments = async func
80
80
  fieldSchema.type = 'number';
81
81
  break;
82
82
  case connect_1.DataType.TIMESTAMP:
83
- fieldSchema.type = 'timestamp';
83
+ fieldSchema.type = 'datetime';
84
84
  break;
85
85
  }
86
86
  }
@@ -46,15 +46,15 @@ TypeDocumentFactory.prototype.prepareDataTypeInitArguments = async function (sch
46
46
  fieldSchema.type = 'bigint';
47
47
  break;
48
48
  case SqbDataType.DATE:
49
- if (!fieldSchema.type || (detectType && (fieldSchema.type === 'timestamp' || fieldSchema.type === 'string')))
49
+ if (!fieldSchema.type || (detectType && (fieldSchema.type === 'datetime' || fieldSchema.type === 'string')))
50
50
  fieldSchema.type = 'date';
51
51
  break;
52
52
  case SqbDataType.TIMESTAMPTZ:
53
- if (!fieldSchema.type || (detectType && (fieldSchema.type === 'timestamp' || fieldSchema.type === 'string')))
53
+ if (!fieldSchema.type || (detectType && (fieldSchema.type === 'datetime' || fieldSchema.type === 'string')))
54
54
  fieldSchema.type = 'timestamptz';
55
55
  break;
56
56
  case SqbDataType.TIME:
57
- if (!fieldSchema.type || (detectType && (fieldSchema.type === 'timestamp' || fieldSchema.type === 'string')))
57
+ if (!fieldSchema.type || (detectType && (fieldSchema.type === 'datetime' || fieldSchema.type === 'string')))
58
58
  fieldSchema.type = 'time';
59
59
  break;
60
60
  case SqbDataType.BINARY:
@@ -78,7 +78,7 @@ TypeDocumentFactory.prototype.prepareDataTypeInitArguments = async function (sch
78
78
  fieldSchema.type = 'number';
79
79
  break;
80
80
  case SqbDataType.TIMESTAMP:
81
- fieldSchema.type = 'timestamp';
81
+ fieldSchema.type = 'datetime';
82
82
  break;
83
83
  }
84
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/sqb",
3
- "version": "0.31.2",
3
+ "version": "0.31.4",
4
4
  "description": "Opra SQB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -29,17 +29,17 @@
29
29
  "lodash.omitby": "^4.6.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@faker-js/faker": "^8.2.0",
33
- "@sqb/builder": "^4.9.1",
34
- "@sqb/connect": "^4.9.1",
35
- "@sqb/postgres": "^4.9.1",
36
- "@types/lodash.isnil": "^4.0.8",
37
- "@types/lodash.omitby": "^4.6.8",
38
- "postgresql-client": "^2.9.1",
32
+ "@faker-js/faker": "^8.3.1",
33
+ "@sqb/builder": "^4.10.4",
34
+ "@sqb/connect": "^4.10.4",
35
+ "@sqb/postgres": "^4.10.4",
36
+ "@types/lodash.isnil": "^4.0.9",
37
+ "@types/lodash.omitby": "^4.6.9",
38
+ "postgresql-client": "^2.10.1",
39
39
  "ts-gems": "^2.5.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@opra/core": "^0.31.2",
42
+ "@opra/core": "^0.31.4",
43
43
  "@sqb/connect": ">= 4.9.0"
44
44
  },
45
45
  "type": "module",