@egi/smart-db 2.6.5 → 3.0.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.
- package/README.md +355 -0
- package/assets/mysql/smart-db-core-update.001.sql +10 -0
- package/assets/oracle/smart-db-core-update.001.sql +13 -0
- package/assets/sqlite3/smart-db-core-update.001.sql +10 -0
- package/drivers/smart-db-better-sqlite3.d.ts +103 -16
- package/drivers/smart-db-better-sqlite3.js +1 -1
- package/drivers/smart-db-mysql.d.ts +53 -10
- package/drivers/smart-db-mysql.js +1 -1
- package/drivers/smart-db-oracle.d.ts +93 -20
- package/drivers/smart-db-oracle.js +1 -1
- package/helpers/extract-db-api.js +1 -1
- package/models/abstract-model.d.ts +39 -4
- package/models/abstract-model.js +1 -1
- package/models/mysql-tables-model.d.ts +109 -0
- package/models/mysql-tables-model.js +1 -0
- package/models/oracle-all-cons-columns-model.d.ts +55 -0
- package/models/oracle-all-cons-columns-model.js +1 -0
- package/models/oracle-all-constraints-model.d.ts +177 -0
- package/models/oracle-all-constraints-model.js +1 -0
- package/models/oracle-all-dependencies-model.d.ts +77 -0
- package/models/oracle-all-dependencies-model.js +1 -0
- package/models/oracle-all-objects-model.d.ts +201 -0
- package/models/oracle-all-objects-model.js +1 -0
- package/models/oracle-all-tab-columns-model.d.ts +305 -0
- package/models/oracle-all-tab-columns-model.js +1 -0
- package/models/oracle-all-triggers-model.d.ts +187 -0
- package/models/oracle-all-triggers-model.js +1 -0
- package/{models.generated/smart-db-user-tab-columns-view-model.d.ts → models/smart-db-all-tab-columns-view-model.d.ts} +14 -6
- package/models/smart-db-all-tab-columns-view-model.js +1 -0
- package/models/smart-db-core-table-model.d.ts +24 -22
- package/models/smart-db-core-table-model.js +1 -1
- package/models/smart-db-dictionary.d.ts +2 -10
- package/models/smart-db-dictionary.js +1 -1
- package/models/smart-db-log-model.d.ts +25 -8
- package/models/smart-db-log-model.js +1 -1
- package/models/smart-db-test-table-model.d.ts +79 -0
- package/models/smart-db-test-table-model.js +1 -0
- package/models/smart-db-user-tab-columns-view-model.d.ts +2 -0
- package/models/smart-db-user-tab-columns-view-model.js +1 -1
- package/models/smart-db-version-model.d.ts +25 -8
- package/models/smart-db-version-model.js +1 -1
- package/models/smart-db-version-view-model.d.ts +27 -8
- package/models/smart-db-version-view-model.js +1 -1
- package/models/sqlite-master-model.d.ts +14 -12
- package/models/sqlite-master-model.js +1 -1
- package/models/sqlite-sequence-model.d.ts +9 -7
- package/models/sqlite-sequence-model.js +1 -1
- package/package.json +40 -56
- package/smart-db-api.d.ts +2 -1
- package/smart-db-api.js +1 -1
- package/smart-db-browser.d.ts +5 -0
- package/smart-db-browser.js +1 -0
- package/smart-db-globals.d.ts +37 -5
- package/smart-db-globals.js +1 -1
- package/smart-db-interfaces.d.ts +330 -40
- package/smart-db-interfaces.js +1 -1
- package/smart-db-sql-build-data.d.ts +10 -1
- package/smart-db-sql-build-data.js +1 -1
- package/smart-db-upgrade-manager.d.ts +6 -4
- package/smart-db-upgrade-manager.js +1 -1
- package/smart-db.d.ts +451 -55
- package/smart-db.js +1 -1
- package/smart-error.d.ts +9 -28
- package/smart-error.js +1 -1
- package/smart-tools.d.ts +178 -0
- package/smart-tools.js +1 -0
- package/drivers/smart-db-mysql2.d.ts +0 -20
- package/drivers/smart-db-mysql2.js +0 -1
- package/drivers/smart-db-sqlite3.d.ts +0 -23
- package/drivers/smart-db-sqlite3.js +0 -1
- package/models/oracle-cat-model.d.ts +0 -23
- package/models/oracle-cat-model.js +0 -1
- package/models/oracle-user-tab-columns-model.d.ts +0 -39
- package/models/oracle-user-tab-columns-model.js +0 -1
- package/models/oracle-user-tab-columns-view-model.d.ts +0 -43
- package/models/oracle-user-tab-columns-view-model.js +0 -1
- package/models.generated/abstract-model.d.ts +0 -23
- package/models.generated/abstract-model.js +0 -1
- package/models.generated/smart-db-core-table-model.d.ts +0 -41
- package/models.generated/smart-db-core-table-model.js +0 -1
- package/models.generated/smart-db-dictionary.d.ts +0 -14
- package/models.generated/smart-db-dictionary.js +0 -1
- package/models.generated/smart-db-log-model.d.ts +0 -82
- package/models.generated/smart-db-log-model.js +0 -1
- package/models.generated/smart-db-user-tab-columns-view-model.js +0 -1
- package/models.generated/smart-db-version-model.d.ts +0 -82
- package/models.generated/smart-db-version-model.js +0 -1
- package/models.generated/smart-db-version-view-model.d.ts +0 -90
- package/models.generated/smart-db-version-view-model.js +0 -1
- package/smart-db-log.d.ts +0 -40
- package/smart-db-log.js +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GenericModelData, ModelAttributeMap } from "../smart-db-interfaces";
|
|
2
2
|
import { AbstractModel } from "./abstract-model";
|
|
3
|
-
import { SqlValueType } from "../smart-db-interfaces";
|
|
4
3
|
export interface SmartDbVersionModelData extends GenericModelData {
|
|
5
4
|
id?: number;
|
|
6
5
|
module?: string;
|
|
@@ -9,7 +8,7 @@ export interface SmartDbVersionModelData extends GenericModelData {
|
|
|
9
8
|
subVersion?: string;
|
|
10
9
|
revision?: string;
|
|
11
10
|
releaseType?: string;
|
|
12
|
-
installDate?:
|
|
11
|
+
installDate?: Date;
|
|
13
12
|
}
|
|
14
13
|
export declare class SmartDbVersionModel extends AbstractModel<SmartDbVersionModel, SmartDbVersionModelData> {
|
|
15
14
|
private _id?;
|
|
@@ -23,60 +22,78 @@ export declare class SmartDbVersionModel extends AbstractModel<SmartDbVersionMod
|
|
|
23
22
|
static readonly attributeMap: ModelAttributeMap;
|
|
24
23
|
static getClassName(): string;
|
|
25
24
|
static getTableName(): string;
|
|
25
|
+
static getPkSequenceName(): string;
|
|
26
26
|
static getPrimaryKey(): string;
|
|
27
27
|
static from(other: SmartDbVersionModel | SmartDbVersionModelData): SmartDbVersionModel;
|
|
28
28
|
constructor(data?: SmartDbVersionModel | SmartDbVersionModelData);
|
|
29
29
|
clone(): SmartDbVersionModel;
|
|
30
30
|
getClassName(): string;
|
|
31
31
|
getTableName(): string;
|
|
32
|
+
getPkSequenceName(): string;
|
|
32
33
|
getPrimaryKey(): string;
|
|
33
34
|
getAttributeMap(): ModelAttributeMap;
|
|
34
35
|
get id(): number;
|
|
35
36
|
set id(id: number);
|
|
37
|
+
get verId(): number;
|
|
38
|
+
set verId(id: number);
|
|
36
39
|
get ver_id(): number;
|
|
37
40
|
set ver_id(id: number);
|
|
38
41
|
get VER_ID(): number;
|
|
39
42
|
set VER_ID(id: number);
|
|
40
43
|
get module(): string;
|
|
41
44
|
set module(module: string);
|
|
45
|
+
get verModule(): string;
|
|
46
|
+
set verModule(module: string);
|
|
42
47
|
get ver_module(): string;
|
|
43
48
|
set ver_module(module: string);
|
|
44
49
|
get VER_MODULE(): string;
|
|
45
50
|
set VER_MODULE(module: string);
|
|
46
51
|
get sequence(): number;
|
|
47
52
|
set sequence(sequence: number);
|
|
53
|
+
get verSequence(): number;
|
|
54
|
+
set verSequence(sequence: number);
|
|
48
55
|
get ver_sequence(): number;
|
|
49
56
|
set ver_sequence(sequence: number);
|
|
50
57
|
get VER_SEQUENCE(): number;
|
|
51
58
|
set VER_SEQUENCE(sequence: number);
|
|
52
59
|
get version(): string;
|
|
53
60
|
set version(version: string);
|
|
61
|
+
get verVersion(): string;
|
|
62
|
+
set verVersion(version: string);
|
|
54
63
|
get ver_version(): string;
|
|
55
64
|
set ver_version(version: string);
|
|
56
65
|
get VER_VERSION(): string;
|
|
57
66
|
set VER_VERSION(version: string);
|
|
58
67
|
get subVersion(): string;
|
|
59
68
|
set subVersion(subVersion: string);
|
|
69
|
+
get verSubVersion(): string;
|
|
70
|
+
set verSubVersion(subVersion: string);
|
|
60
71
|
get ver_sub_version(): string;
|
|
61
72
|
set ver_sub_version(subVersion: string);
|
|
62
73
|
get VER_SUB_VERSION(): string;
|
|
63
74
|
set VER_SUB_VERSION(subVersion: string);
|
|
64
75
|
get revision(): string;
|
|
65
76
|
set revision(revision: string);
|
|
77
|
+
get verRevision(): string;
|
|
78
|
+
set verRevision(revision: string);
|
|
66
79
|
get ver_revision(): string;
|
|
67
80
|
set ver_revision(revision: string);
|
|
68
81
|
get VER_REVISION(): string;
|
|
69
82
|
set VER_REVISION(revision: string);
|
|
70
83
|
get releaseType(): string;
|
|
71
84
|
set releaseType(releaseType: string);
|
|
85
|
+
get verReleaseType(): string;
|
|
86
|
+
set verReleaseType(releaseType: string);
|
|
72
87
|
get ver_release_type(): string;
|
|
73
88
|
set ver_release_type(releaseType: string);
|
|
74
89
|
get VER_RELEASE_TYPE(): string;
|
|
75
90
|
set VER_RELEASE_TYPE(releaseType: string);
|
|
76
|
-
get installDate():
|
|
77
|
-
set installDate(installDate:
|
|
78
|
-
get
|
|
79
|
-
set
|
|
80
|
-
get
|
|
81
|
-
set
|
|
91
|
+
get installDate(): Date;
|
|
92
|
+
set installDate(installDate: Date);
|
|
93
|
+
get verInstallDate(): Date;
|
|
94
|
+
set verInstallDate(installDate: Date);
|
|
95
|
+
get ver_install_date(): Date;
|
|
96
|
+
set ver_install_date(installDate: Date);
|
|
97
|
+
get VER_INSTALL_DATE(): Date;
|
|
98
|
+
set VER_INSTALL_DATE(installDate: Date);
|
|
82
99
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __extends=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.SmartDbVersionModel=void 0;var abstract_model_1=require("./abstract-model"),SmartDbVersionModel=function(e){function t(t){var r=e.call(this)||this;return t&&r.assign(t),r}return __extends(t,e),t.getClassName=function(){return"SmartDbVersionModel"},t.getTableName=function(){return"smart_db_version"},t.getPkSequenceName=function(){return"SMART_DB_VERSION_SEQ"},t.getPrimaryKey=function(){return"VER_ID"},t.from=function(e){var r=null;return e&&(r=new t(e)),r},t.prototype.clone=function(){return t.from(this)},t.prototype.getClassName=function(){return"SmartDbVersionModel"},t.prototype.getTableName=function(){return"smart_db_version"},t.prototype.getPkSequenceName=function(){return"SMART_DB_VERSION_SEQ"},t.prototype.getPrimaryKey=function(){return"VER_ID"},t.prototype.getAttributeMap=function(){return t.attributeMap},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verId",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_id",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_ID",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"module",{get:function(){return this._module},set:function(e){this._module=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verModule",{get:function(){return this._module},set:function(e){this._module=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_module",{get:function(){return this._module},set:function(e){this._module=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_MODULE",{get:function(){return this._module},set:function(e){this._module=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sequence",{get:function(){return this._sequence},set:function(e){this._sequence=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verSequence",{get:function(){return this._sequence},set:function(e){this._sequence=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_sequence",{get:function(){return this._sequence},set:function(e){this._sequence=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_SEQUENCE",{get:function(){return this._sequence},set:function(e){this._sequence=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){this._version=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verVersion",{get:function(){return this._version},set:function(e){this._version=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_version",{get:function(){return this._version},set:function(e){this._version=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_VERSION",{get:function(){return this._version},set:function(e){this._version=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subVersion",{get:function(){return this._subVersion},set:function(e){this._subVersion=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verSubVersion",{get:function(){return this._subVersion},set:function(e){this._subVersion=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_sub_version",{get:function(){return this._subVersion},set:function(e){this._subVersion=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_SUB_VERSION",{get:function(){return this._subVersion},set:function(e){this._subVersion=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verRevision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_REVISION",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"releaseType",{get:function(){return this._releaseType},set:function(e){this._releaseType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verReleaseType",{get:function(){return this._releaseType},set:function(e){this._releaseType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_release_type",{get:function(){return this._releaseType},set:function(e){this._releaseType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_RELEASE_TYPE",{get:function(){return this._releaseType},set:function(e){this._releaseType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"installDate",{get:function(){return this._installDate},set:function(e){this._installDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verInstallDate",{get:function(){return this._installDate},set:function(e){this._installDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_install_date",{get:function(){return this._installDate},set:function(e){this._installDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_INSTALL_DATE",{get:function(){return this._installDate},set:function(e){this._installDate=e},enumerable:!1,configurable:!0}),t.attributeMap={id:{alias:"VER_ID",typeScriptStyle:!0,type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_id"},verId:{alias:"VER_ID",type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_id"},ver_id:{type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_id"},VER_ID:{physical:!0,type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_id"},module:{alias:"VER_MODULE",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_module"},verModule:{alias:"VER_MODULE",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_module"},ver_module:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_module"},VER_MODULE:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_module"},sequence:{alias:"VER_SEQUENCE",typeScriptStyle:!0,type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_sequence"},verSequence:{alias:"VER_SEQUENCE",type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_sequence"},ver_sequence:{type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_sequence"},VER_SEQUENCE:{physical:!0,type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_sequence"},version:{alias:"VER_VERSION",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_version"},verVersion:{alias:"VER_VERSION",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_version"},ver_version:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_version"},VER_VERSION:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_version"},subVersion:{alias:"VER_SUB_VERSION",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_subVersion"},verSubVersion:{alias:"VER_SUB_VERSION",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_subVersion"},ver_sub_version:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_subVersion"},VER_SUB_VERSION:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_subVersion"},revision:{alias:"VER_REVISION",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_revision"},verRevision:{alias:"VER_REVISION",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_revision"},ver_revision:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_revision"},VER_REVISION:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_revision"},releaseType:{alias:"VER_RELEASE_TYPE",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_releaseType"},verReleaseType:{alias:"VER_RELEASE_TYPE",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_releaseType"},ver_release_type:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_releaseType"},VER_RELEASE_TYPE:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_releaseType"},installDate:{alias:"VER_INSTALL_DATE",typeScriptStyle:!0,type:"Date",dbType:"TIMESTAMP",dbFullType:"TIMESTAMP(3)",attribute:"_installDate"},verInstallDate:{alias:"VER_INSTALL_DATE",type:"Date",dbType:"TIMESTAMP",dbFullType:"TIMESTAMP(3)",attribute:"_installDate"},ver_install_date:{type:"Date",dbType:"TIMESTAMP",dbFullType:"TIMESTAMP(3)",attribute:"_installDate"},VER_INSTALL_DATE:{physical:!0,type:"Date",dbType:"TIMESTAMP",dbFullType:"TIMESTAMP(3)",attribute:"_installDate"}},t}(abstract_model_1.AbstractModel);exports.SmartDbVersionModel=SmartDbVersionModel;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GenericModelData, ModelAttributeMap } from "../smart-db-interfaces";
|
|
2
2
|
import { AbstractModel } from "./abstract-model";
|
|
3
|
-
import { SqlValueType } from "../smart-db-interfaces";
|
|
4
3
|
export interface SmartDbVersionViewModelData extends GenericModelData {
|
|
5
4
|
id?: number;
|
|
6
5
|
module?: string;
|
|
@@ -9,7 +8,7 @@ export interface SmartDbVersionViewModelData extends GenericModelData {
|
|
|
9
8
|
subVersion?: string;
|
|
10
9
|
revision?: string;
|
|
11
10
|
releaseType?: string;
|
|
12
|
-
installDate?:
|
|
11
|
+
installDate?: Date;
|
|
13
12
|
versionString?: string;
|
|
14
13
|
}
|
|
15
14
|
export declare class SmartDbVersionViewModel extends AbstractModel<SmartDbVersionViewModel, SmartDbVersionViewModelData> {
|
|
@@ -25,64 +24,84 @@ export declare class SmartDbVersionViewModel extends AbstractModel<SmartDbVersio
|
|
|
25
24
|
static readonly attributeMap: ModelAttributeMap;
|
|
26
25
|
static getClassName(): string;
|
|
27
26
|
static getTableName(): string;
|
|
27
|
+
static getPkSequenceName(): string;
|
|
28
28
|
static getPrimaryKey(): string;
|
|
29
29
|
static from(other: SmartDbVersionViewModel | SmartDbVersionViewModelData): SmartDbVersionViewModel;
|
|
30
30
|
constructor(data?: SmartDbVersionViewModel | SmartDbVersionViewModelData);
|
|
31
31
|
clone(): SmartDbVersionViewModel;
|
|
32
32
|
getClassName(): string;
|
|
33
33
|
getTableName(): string;
|
|
34
|
+
getPkSequenceName(): string;
|
|
34
35
|
getPrimaryKey(): string;
|
|
35
36
|
getAttributeMap(): ModelAttributeMap;
|
|
36
37
|
get id(): number;
|
|
37
38
|
set id(id: number);
|
|
39
|
+
get verId(): number;
|
|
40
|
+
set verId(id: number);
|
|
38
41
|
get ver_id(): number;
|
|
39
42
|
set ver_id(id: number);
|
|
40
43
|
get VER_ID(): number;
|
|
41
44
|
set VER_ID(id: number);
|
|
42
45
|
get module(): string;
|
|
43
46
|
set module(module: string);
|
|
47
|
+
get verModule(): string;
|
|
48
|
+
set verModule(module: string);
|
|
44
49
|
get ver_module(): string;
|
|
45
50
|
set ver_module(module: string);
|
|
46
51
|
get VER_MODULE(): string;
|
|
47
52
|
set VER_MODULE(module: string);
|
|
48
53
|
get sequence(): number;
|
|
49
54
|
set sequence(sequence: number);
|
|
55
|
+
get verSequence(): number;
|
|
56
|
+
set verSequence(sequence: number);
|
|
50
57
|
get ver_sequence(): number;
|
|
51
58
|
set ver_sequence(sequence: number);
|
|
52
59
|
get VER_SEQUENCE(): number;
|
|
53
60
|
set VER_SEQUENCE(sequence: number);
|
|
54
61
|
get version(): string;
|
|
55
62
|
set version(version: string);
|
|
63
|
+
get verVersion(): string;
|
|
64
|
+
set verVersion(version: string);
|
|
56
65
|
get ver_version(): string;
|
|
57
66
|
set ver_version(version: string);
|
|
58
67
|
get VER_VERSION(): string;
|
|
59
68
|
set VER_VERSION(version: string);
|
|
60
69
|
get subVersion(): string;
|
|
61
70
|
set subVersion(subVersion: string);
|
|
71
|
+
get verSubVersion(): string;
|
|
72
|
+
set verSubVersion(subVersion: string);
|
|
62
73
|
get ver_sub_version(): string;
|
|
63
74
|
set ver_sub_version(subVersion: string);
|
|
64
75
|
get VER_SUB_VERSION(): string;
|
|
65
76
|
set VER_SUB_VERSION(subVersion: string);
|
|
66
77
|
get revision(): string;
|
|
67
78
|
set revision(revision: string);
|
|
79
|
+
get verRevision(): string;
|
|
80
|
+
set verRevision(revision: string);
|
|
68
81
|
get ver_revision(): string;
|
|
69
82
|
set ver_revision(revision: string);
|
|
70
83
|
get VER_REVISION(): string;
|
|
71
84
|
set VER_REVISION(revision: string);
|
|
72
85
|
get releaseType(): string;
|
|
73
86
|
set releaseType(releaseType: string);
|
|
87
|
+
get verReleaseType(): string;
|
|
88
|
+
set verReleaseType(releaseType: string);
|
|
74
89
|
get ver_release_type(): string;
|
|
75
90
|
set ver_release_type(releaseType: string);
|
|
76
91
|
get VER_RELEASE_TYPE(): string;
|
|
77
92
|
set VER_RELEASE_TYPE(releaseType: string);
|
|
78
|
-
get installDate():
|
|
79
|
-
set installDate(installDate:
|
|
80
|
-
get
|
|
81
|
-
set
|
|
82
|
-
get
|
|
83
|
-
set
|
|
93
|
+
get installDate(): Date;
|
|
94
|
+
set installDate(installDate: Date);
|
|
95
|
+
get verInstallDate(): Date;
|
|
96
|
+
set verInstallDate(installDate: Date);
|
|
97
|
+
get ver_install_date(): Date;
|
|
98
|
+
set ver_install_date(installDate: Date);
|
|
99
|
+
get VER_INSTALL_DATE(): Date;
|
|
100
|
+
set VER_INSTALL_DATE(installDate: Date);
|
|
84
101
|
get versionString(): string;
|
|
85
102
|
set versionString(versionString: string);
|
|
103
|
+
get verVersionString(): string;
|
|
104
|
+
set verVersionString(versionString: string);
|
|
86
105
|
get ver_version_string(): string;
|
|
87
106
|
set ver_version_string(versionString: string);
|
|
88
107
|
get VER_VERSION_STRING(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{AbstractModel}from"./abstract-model";export class SmartDbVersionViewModel extends AbstractModel{constructor(e){super(),e&&this.assign(e)}static getClassName(){return"SmartDbVersionViewModel"}static getTableName(){return"smart_db_version_view"}static getPrimaryKey(){return""}static from(e){let t=null;return e&&(t=new SmartDbVersionViewModel,e instanceof SmartDbVersionViewModel?Object.assign(t,e):t.assign(e)),t}clone(){return SmartDbVersionViewModel.from(this)}getClassName(){return"SmartDbVersionViewModel"}getTableName(){return"smart_db_version_view"}getPrimaryKey(){return""}getAttributeMap(){return SmartDbVersionViewModel.attributeMap}get id(){return this._id}set id(e){this._id=e}get ver_id(){return this._id}set ver_id(e){this._id=e}get VER_ID(){return this._id}set VER_ID(e){this._id=e}get module(){return this._module}set module(e){this._module=e}get ver_module(){return this._module}set ver_module(e){this._module=e}get VER_MODULE(){return this._module}set VER_MODULE(e){this._module=e}get sequence(){return this._sequence}set sequence(e){this._sequence=e}get ver_sequence(){return this._sequence}set ver_sequence(e){this._sequence=e}get VER_SEQUENCE(){return this._sequence}set VER_SEQUENCE(e){this._sequence=e}get version(){return this._version}set version(e){this._version=e}get ver_version(){return this._version}set ver_version(e){this._version=e}get VER_VERSION(){return this._version}set VER_VERSION(e){this._version=e}get subVersion(){return this._subVersion}set subVersion(e){this._subVersion=e}get ver_sub_version(){return this._subVersion}set ver_sub_version(e){this._subVersion=e}get VER_SUB_VERSION(){return this._subVersion}set VER_SUB_VERSION(e){this._subVersion=e}get revision(){return this._revision}set revision(e){this._revision=e}get ver_revision(){return this._revision}set ver_revision(e){this._revision=e}get VER_REVISION(){return this._revision}set VER_REVISION(e){this._revision=e}get releaseType(){return this._releaseType}set releaseType(e){this._releaseType=e}get ver_release_type(){return this._releaseType}set ver_release_type(e){this._releaseType=e}get VER_RELEASE_TYPE(){return this._releaseType}set VER_RELEASE_TYPE(e){this._releaseType=e}get installDate(){return this._installDate}set installDate(e){this._installDate=e}get ver_install_date(){return this._installDate}set ver_install_date(e){this._installDate=e}get VER_INSTALL_DATE(){return this._installDate}set VER_INSTALL_DATE(e){this._installDate=e}get versionString(){return this._versionString}set versionString(e){this._versionString=e}get ver_version_string(){return this._versionString}set ver_version_string(e){this._versionString=e}get VER_VERSION_STRING(){return this._versionString}set VER_VERSION_STRING(e){this._versionString=e}}SmartDbVersionViewModel.attributeMap={id:{alias:"VER_ID",typeScriptStyle:!0,type:"number",attribute:"_id"},ver_id:{type:"number",attribute:"_id"},VER_ID:{physical:!0,type:"number",attribute:"_id"},module:{alias:"VER_MODULE",typeScriptStyle:!0,type:"string",attribute:"_module"},ver_module:{type:"string",attribute:"_module"},VER_MODULE:{physical:!0,type:"string",attribute:"_module"},sequence:{alias:"VER_SEQUENCE",typeScriptStyle:!0,type:"number",attribute:"_sequence"},ver_sequence:{type:"number",attribute:"_sequence"},VER_SEQUENCE:{physical:!0,type:"number",attribute:"_sequence"},version:{alias:"VER_VERSION",typeScriptStyle:!0,type:"string",attribute:"_version"},ver_version:{type:"string",attribute:"_version"},VER_VERSION:{physical:!0,type:"string",attribute:"_version"},subVersion:{alias:"VER_SUB_VERSION",typeScriptStyle:!0,type:"string",attribute:"_subVersion"},ver_sub_version:{type:"string",attribute:"_subVersion"},VER_SUB_VERSION:{physical:!0,type:"string",attribute:"_subVersion"},revision:{alias:"VER_REVISION",typeScriptStyle:!0,type:"string",attribute:"_revision"},ver_revision:{type:"string",attribute:"_revision"},VER_REVISION:{physical:!0,type:"string",attribute:"_revision"},releaseType:{alias:"VER_RELEASE_TYPE",typeScriptStyle:!0,type:"string",attribute:"_releaseType"},ver_release_type:{type:"string",attribute:"_releaseType"},VER_RELEASE_TYPE:{physical:!0,type:"string",attribute:"_releaseType"},installDate:{alias:"VER_INSTALL_DATE",typeScriptStyle:!0,type:"SqlValueType",attribute:"_installDate"},ver_install_date:{type:"SqlValueType",attribute:"_installDate"},VER_INSTALL_DATE:{physical:!0,type:"SqlValueType",attribute:"_installDate"},versionString:{alias:"VER_VERSION_STRING",typeScriptStyle:!0,type:"string",attribute:"_versionString"},ver_version_string:{type:"string",attribute:"_versionString"},VER_VERSION_STRING:{physical:!0,type:"string",attribute:"_versionString"}};
|
|
1
|
+
"use strict";var __extends=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.SmartDbVersionViewModel=void 0;var abstract_model_1=require("./abstract-model"),SmartDbVersionViewModel=function(e){function t(t){var r=e.call(this)||this;return t&&r.assign(t),r}return __extends(t,e),t.getClassName=function(){return"SmartDbVersionViewModel"},t.getTableName=function(){return"smart_db_version_view"},t.getPkSequenceName=function(){return"SMART_DB_VERSION_SEQ"},t.getPrimaryKey=function(){return"VER_ID"},t.from=function(e){var r=null;return e&&(r=new t(e)),r},t.prototype.clone=function(){return t.from(this)},t.prototype.getClassName=function(){return"SmartDbVersionViewModel"},t.prototype.getTableName=function(){return"smart_db_version_view"},t.prototype.getPkSequenceName=function(){return"SMART_DB_VERSION_SEQ"},t.prototype.getPrimaryKey=function(){return"VER_ID"},t.prototype.getAttributeMap=function(){return t.attributeMap},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verId",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_id",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_ID",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"module",{get:function(){return this._module},set:function(e){this._module=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verModule",{get:function(){return this._module},set:function(e){this._module=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_module",{get:function(){return this._module},set:function(e){this._module=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_MODULE",{get:function(){return this._module},set:function(e){this._module=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sequence",{get:function(){return this._sequence},set:function(e){this._sequence=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verSequence",{get:function(){return this._sequence},set:function(e){this._sequence=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_sequence",{get:function(){return this._sequence},set:function(e){this._sequence=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_SEQUENCE",{get:function(){return this._sequence},set:function(e){this._sequence=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){this._version=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verVersion",{get:function(){return this._version},set:function(e){this._version=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_version",{get:function(){return this._version},set:function(e){this._version=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_VERSION",{get:function(){return this._version},set:function(e){this._version=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subVersion",{get:function(){return this._subVersion},set:function(e){this._subVersion=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verSubVersion",{get:function(){return this._subVersion},set:function(e){this._subVersion=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_sub_version",{get:function(){return this._subVersion},set:function(e){this._subVersion=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_SUB_VERSION",{get:function(){return this._subVersion},set:function(e){this._subVersion=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verRevision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_REVISION",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"releaseType",{get:function(){return this._releaseType},set:function(e){this._releaseType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verReleaseType",{get:function(){return this._releaseType},set:function(e){this._releaseType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_release_type",{get:function(){return this._releaseType},set:function(e){this._releaseType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_RELEASE_TYPE",{get:function(){return this._releaseType},set:function(e){this._releaseType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"installDate",{get:function(){return this._installDate},set:function(e){this._installDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verInstallDate",{get:function(){return this._installDate},set:function(e){this._installDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_install_date",{get:function(){return this._installDate},set:function(e){this._installDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_INSTALL_DATE",{get:function(){return this._installDate},set:function(e){this._installDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"versionString",{get:function(){return this._versionString},set:function(e){this._versionString=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verVersionString",{get:function(){return this._versionString},set:function(e){this._versionString=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ver_version_string",{get:function(){return this._versionString},set:function(e){this._versionString=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VER_VERSION_STRING",{get:function(){return this._versionString},set:function(e){this._versionString=e},enumerable:!1,configurable:!0}),t.attributeMap={id:{alias:"VER_ID",typeScriptStyle:!0,type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_id"},verId:{alias:"VER_ID",type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_id"},ver_id:{type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_id"},VER_ID:{physical:!0,type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_id"},module:{alias:"VER_MODULE",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_module"},verModule:{alias:"VER_MODULE",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_module"},ver_module:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_module"},VER_MODULE:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_module"},sequence:{alias:"VER_SEQUENCE",typeScriptStyle:!0,type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_sequence"},verSequence:{alias:"VER_SEQUENCE",type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_sequence"},ver_sequence:{type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_sequence"},VER_SEQUENCE:{physical:!0,type:"number",dbType:"NUMBER",dbFullType:"NUMBER(38)",attribute:"_sequence"},version:{alias:"VER_VERSION",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_version"},verVersion:{alias:"VER_VERSION",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_version"},ver_version:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_version"},VER_VERSION:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_version"},subVersion:{alias:"VER_SUB_VERSION",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_subVersion"},verSubVersion:{alias:"VER_SUB_VERSION",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_subVersion"},ver_sub_version:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_subVersion"},VER_SUB_VERSION:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_subVersion"},revision:{alias:"VER_REVISION",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_revision"},verRevision:{alias:"VER_REVISION",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_revision"},ver_revision:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_revision"},VER_REVISION:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(3)",attribute:"_revision"},releaseType:{alias:"VER_RELEASE_TYPE",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_releaseType"},verReleaseType:{alias:"VER_RELEASE_TYPE",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_releaseType"},ver_release_type:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_releaseType"},VER_RELEASE_TYPE:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(32)",attribute:"_releaseType"},installDate:{alias:"VER_INSTALL_DATE",typeScriptStyle:!0,type:"Date",dbType:"TIMESTAMP",dbFullType:"TIMESTAMP(3)",attribute:"_installDate"},verInstallDate:{alias:"VER_INSTALL_DATE",type:"Date",dbType:"TIMESTAMP",dbFullType:"TIMESTAMP(3)",attribute:"_installDate"},ver_install_date:{type:"Date",dbType:"TIMESTAMP",dbFullType:"TIMESTAMP(3)",attribute:"_installDate"},VER_INSTALL_DATE:{physical:!0,type:"Date",dbType:"TIMESTAMP",dbFullType:"TIMESTAMP(3)",attribute:"_installDate"},versionString:{alias:"VER_VERSION_STRING",typeScriptStyle:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(43)",attribute:"_versionString"},verVersionString:{alias:"VER_VERSION_STRING",type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(43)",attribute:"_versionString"},ver_version_string:{type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(43)",attribute:"_versionString"},VER_VERSION_STRING:{physical:!0,type:"string",dbType:"VARCHAR2",dbFullType:"VARCHAR2(43)",attribute:"_versionString"}},t}(abstract_model_1.AbstractModel);exports.SmartDbVersionViewModel=SmartDbVersionViewModel;
|
|
@@ -2,25 +2,16 @@ import { ModelAttributeMap } from "../smart-db-interfaces";
|
|
|
2
2
|
import { AbstractModel } from "./abstract-model";
|
|
3
3
|
export interface SqliteMasterModelData extends Record<string, any> {
|
|
4
4
|
name?: string;
|
|
5
|
-
type?: string;
|
|
6
5
|
rootpage?: number;
|
|
7
6
|
sql?: string;
|
|
7
|
+
type?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare class SqliteMasterModel extends AbstractModel<SqliteMasterModel, SqliteMasterModelData> {
|
|
10
|
-
private _type?;
|
|
11
10
|
private _name;
|
|
12
|
-
private _tbl_name?;
|
|
13
11
|
private _rootpage?;
|
|
14
12
|
private _sql?;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
static getTableName(): string;
|
|
18
|
-
static from(other: SqliteMasterModel): SqliteMasterModel;
|
|
19
|
-
clone(): SqliteMasterModel;
|
|
20
|
-
getClassName(): string;
|
|
21
|
-
getTableName(): string;
|
|
22
|
-
getAttributeMap(): ModelAttributeMap;
|
|
23
|
-
getPrimaryKey(): string;
|
|
13
|
+
private _tbl_name?;
|
|
14
|
+
private _type?;
|
|
24
15
|
get name(): string;
|
|
25
16
|
set name(name: string);
|
|
26
17
|
get rootpage(): number;
|
|
@@ -33,4 +24,15 @@ export declare class SqliteMasterModel extends AbstractModel<SqliteMasterModel,
|
|
|
33
24
|
set tbl_name(tblNname: string);
|
|
34
25
|
get type(): string;
|
|
35
26
|
set type(type: string);
|
|
27
|
+
static getClassName(): string;
|
|
28
|
+
clone(): SqliteMasterModel;
|
|
29
|
+
getClassName(): string;
|
|
30
|
+
getTableName(): string;
|
|
31
|
+
getPkSequenceName(): string;
|
|
32
|
+
getPrimaryKey(): string;
|
|
33
|
+
getAttributeMap(): ModelAttributeMap;
|
|
34
|
+
static readonly attributeMap: ModelAttributeMap;
|
|
35
|
+
static getTableName(): string;
|
|
36
|
+
static getPkSequenceName(): string;
|
|
37
|
+
static from(other: SqliteMasterModel): SqliteMasterModel;
|
|
36
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.SqliteMasterModel=void 0;var abstract_model_1=require("./abstract-model"),SqliteMasterModel=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rootpage",{get:function(){return this._rootpage},set:function(t){this._rootpage=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sql",{get:function(){return this._sql},set:function(t){this._sql=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tblName",{get:function(){return this._tbl_name},set:function(t){this._tbl_name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tbl_name",{get:function(){return this._tbl_name},set:function(t){this._tbl_name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!1,configurable:!0}),e.getClassName=function(){return"SqliteMasterModel"},e.prototype.clone=function(){return e.from(this)},e.prototype.getClassName=function(){return"SqliteMasterModel"},e.prototype.getTableName=function(){return"sqlite_master"},e.prototype.getPkSequenceName=function(){return null},e.prototype.getPrimaryKey=function(){return"name"},e.prototype.getAttributeMap=function(){return e.attributeMap},e.getTableName=function(){return"sqlite_master"},e.getPkSequenceName=function(){return null},e.from=function(t){var r=null;return t&&(r=new e(t)),r},e.attributeMap={type:{type:"string",attribute:"_type"},name:{type:"string",attribute:"_name"},tbl_name:{type:"string",attribute:"_tbl_name"},tblName:{alias:"tbl_name",type:"string",attribute:"_tbl_name"},rootpage:{type:"number",attribute:"_rootpage"},sql:{type:"string",attribute:"_sql"}},e}(abstract_model_1.AbstractModel);exports.SqliteMasterModel=SqliteMasterModel;
|
|
@@ -7,18 +7,20 @@ export interface SqliteSequenceModelData extends Record<string, any> {
|
|
|
7
7
|
export declare class SqliteSequenceModel extends AbstractModel<SqliteSequenceModel, SqliteSequenceModelData> {
|
|
8
8
|
private _name?;
|
|
9
9
|
private _seq?;
|
|
10
|
-
|
|
10
|
+
get name(): SqlValueType;
|
|
11
|
+
set name(name: SqlValueType);
|
|
12
|
+
get seq(): SqlValueType;
|
|
13
|
+
set seq(seq: SqlValueType);
|
|
11
14
|
static getClassName(): string;
|
|
12
|
-
static getTableName(): string;
|
|
13
15
|
static getPrimaryKey(): string;
|
|
14
|
-
static from(other: SqliteSequenceModel | GenericModelData): SqliteSequenceModel;
|
|
15
16
|
clone(): SqliteSequenceModel;
|
|
16
17
|
getClassName(): string;
|
|
17
18
|
getTableName(): string;
|
|
19
|
+
getPkSequenceName(): string;
|
|
18
20
|
getPrimaryKey(): string;
|
|
19
21
|
getAttributeMap(): ModelAttributeMap;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
static readonly attributeMap: ModelAttributeMap;
|
|
23
|
+
static getTableName(): string;
|
|
24
|
+
static getPkSequenceName(): string;
|
|
25
|
+
static from(other: SqliteSequenceModel | GenericModelData): SqliteSequenceModel;
|
|
24
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __extends=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.SqliteSequenceModel=void 0;var abstract_model_1=require("./abstract-model"),SqliteSequenceModel=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seq",{get:function(){return this._seq},set:function(e){this._seq=e},enumerable:!1,configurable:!0}),t.getClassName=function(){return"SqliteSequenceModel"},t.getPrimaryKey=function(){return""},t.prototype.clone=function(){return t.from(this)},t.prototype.getClassName=function(){return"SqliteSequenceModel"},t.prototype.getTableName=function(){return"sqlite_sequence"},t.prototype.getPkSequenceName=function(){return null},t.prototype.getPrimaryKey=function(){return""},t.prototype.getAttributeMap=function(){return t.attributeMap},t.getTableName=function(){return"sqlite_sequence"},t.getPkSequenceName=function(){return null},t.from=function(e){var n=null;return e&&(n=new t(e)),n},t.attributeMap={name:{physical:!0,typeScriptStyle:!0,type:"SqlValueType",attribute:"_name"},seq:{physical:!0,typeScriptStyle:!0,type:"SqlValueType",attribute:"_seq"}},t}(abstract_model_1.AbstractModel);exports.SqliteSequenceModel=SqliteSequenceModel;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egi/smart-db",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Unified Smart DB Access",
|
|
5
5
|
"author": "Marcel Egloff",
|
|
6
|
-
"
|
|
6
|
+
"main": "./smart-log-api.js",
|
|
7
7
|
"browser": {
|
|
8
8
|
"fs": false,
|
|
9
9
|
"path": false,
|
|
@@ -15,45 +15,32 @@
|
|
|
15
15
|
"Smart",
|
|
16
16
|
"DB"
|
|
17
17
|
],
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
"npm:publish": "cd dist; npm publish",
|
|
28
|
-
"pro:build": "npm-run-all clean pro:tsc terser copy:assets",
|
|
29
|
-
"pro:tsc": "tsc --build tsconfig.pro.json",
|
|
30
|
-
"pro:tsc:watch": "tsc --build tsconfig.pro.json --watch",
|
|
31
|
-
"pro:watch": "npm-run-all clean copy:assets pro:tsc:watch",
|
|
32
|
-
"terser": "node dist/helpers/terser-tree 'dist/**/*.js' && rm -f dist/helpers/terser-tree.*",
|
|
33
|
-
"test:models": "tsc --build tsconfig.test-model.json"
|
|
34
|
-
},
|
|
18
|
+
"files": [
|
|
19
|
+
"*.js",
|
|
20
|
+
"*.d.ts",
|
|
21
|
+
"drivers/",
|
|
22
|
+
"models/",
|
|
23
|
+
"helpers/",
|
|
24
|
+
"assets/",
|
|
25
|
+
"bin/"
|
|
26
|
+
],
|
|
35
27
|
"exports": {
|
|
36
|
-
".":
|
|
37
|
-
|
|
28
|
+
".": {
|
|
29
|
+
"browser": "./smart-db-browser.js",
|
|
30
|
+
"default": "./smart-db-api.js"
|
|
31
|
+
},
|
|
38
32
|
"./drivers/smart-db-better-sqlite3": "./drivers/smart-db-better-sqlite3.js",
|
|
39
33
|
"./drivers/smart-db-mysql": "./drivers/smart-db-mysql.js",
|
|
40
|
-
"./drivers/smart-db-mysql2": "./drivers/smart-db-mysql2.js",
|
|
41
34
|
"./drivers/smart-db-oracle": "./drivers/smart-db-oracle.js"
|
|
42
35
|
},
|
|
43
36
|
"types": "./smart-db-api.d.ts",
|
|
44
37
|
"typesVersions": {
|
|
45
38
|
"*": {
|
|
46
|
-
"drivers/smart-db-sqlite3": [
|
|
47
|
-
"./drivers/smart-db-sqlite3.d.ts"
|
|
48
|
-
],
|
|
49
39
|
"drivers/smart-db-better-sqlite3": [
|
|
50
40
|
"./drivers/smart-db-better-sqlite3.d.ts"
|
|
51
41
|
],
|
|
52
|
-
"drivers/smart-db-
|
|
53
|
-
"./drivers/smart-db-
|
|
54
|
-
],
|
|
55
|
-
"drivers/smart-db-better-mysql2": [
|
|
56
|
-
"./drivers/smart-db-better-mysql2.d.ts"
|
|
42
|
+
"drivers/smart-db-mysql": [
|
|
43
|
+
"./drivers/smart-db-mysql.d.ts"
|
|
57
44
|
],
|
|
58
45
|
"drivers/smart-db-oracle": [
|
|
59
46
|
"./drivers/smart-db-oracle.d.ts"
|
|
@@ -61,35 +48,32 @@
|
|
|
61
48
|
}
|
|
62
49
|
},
|
|
63
50
|
"bin": {
|
|
64
|
-
"extract-db-api": "bin/extract-db-api"
|
|
65
|
-
"extract-db-api.js": "./"
|
|
51
|
+
"extract-db-api": "bin/extract-db-api"
|
|
66
52
|
},
|
|
67
53
|
"dependencies": {
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"rxjs": "^7.8.0"
|
|
71
|
-
|
|
54
|
+
"@egi/smart-log": "^1.0.0",
|
|
55
|
+
"luxon": "^3.5.0",
|
|
56
|
+
"rxjs": "^7.8.0"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"better-sqlite3": "^12.8.0",
|
|
60
|
+
"mysql2": "^3.20.0",
|
|
61
|
+
"oracledb": "^6.3.0"
|
|
72
62
|
},
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"mocha": "^10.2.0",
|
|
84
|
-
"npm-run-all": "^4.1.5",
|
|
85
|
-
"terser": "^5.16.3",
|
|
86
|
-
"uglify-js": "^3.17.4"
|
|
63
|
+
"peerDependenciesMeta": {
|
|
64
|
+
"better-sqlite3": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"mysql2": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"oracledb": {
|
|
71
|
+
"optional": true
|
|
72
|
+
}
|
|
87
73
|
},
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"oracledb": "^5.5.0",
|
|
92
|
-
"mysql2": "^2.1.0"
|
|
74
|
+
"repository": {
|
|
75
|
+
"type": "git",
|
|
76
|
+
"url": "https://vault.pegasus-consulting.ch/smart-db"
|
|
93
77
|
},
|
|
94
|
-
"license": "
|
|
78
|
+
"license": "MIT"
|
|
95
79
|
}
|
package/smart-db-api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./smart-db";
|
|
2
2
|
export * from "./smart-error";
|
|
3
|
+
export * from "./smart-tools";
|
|
3
4
|
export * from "./models/abstract-model";
|
|
4
5
|
export * from "./models/smart-db-core-table-model";
|
|
5
6
|
export * from "./models/smart-db-dictionary";
|
|
@@ -8,6 +9,6 @@ export * from "./models/smart-db-version-model";
|
|
|
8
9
|
export * from "./models/smart-db-version-view-model";
|
|
9
10
|
export * from "./models/sqlite-master-model";
|
|
10
11
|
export * from "./models/sqlite-sequence-model";
|
|
11
|
-
export
|
|
12
|
+
export { ISmartLogDbWriter, LogMessage, SmartLog, SmartLocation, SmartLogFormat, SmartLogFormatElement, SmartLogOptions, SmartMessageOptions, SmartSeverityLevel, smartLog } from "@egi/smart-log";
|
|
12
13
|
export * from "./smart-db-globals";
|
|
13
14
|
export * from "./smart-db-interfaces";
|
package/smart-db-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t);var a=Object.getOwnPropertyDescriptor(r,t);a&&!("get"in a?!r.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,o,a)}:function(e,r,t,o){void 0===o&&(o=t),e[o]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.smartLog=exports.SmartSeverityLevel=exports.SmartLogFormatElement=exports.SmartLocation=exports.SmartLog=void 0,__exportStar(require("./smart-db"),exports),__exportStar(require("./smart-error"),exports),__exportStar(require("./smart-tools"),exports),__exportStar(require("./models/abstract-model"),exports),__exportStar(require("./models/smart-db-core-table-model"),exports),__exportStar(require("./models/smart-db-dictionary"),exports),__exportStar(require("./models/smart-db-log-model"),exports),__exportStar(require("./models/smart-db-version-model"),exports),__exportStar(require("./models/smart-db-version-view-model"),exports),__exportStar(require("./models/sqlite-master-model"),exports),__exportStar(require("./models/sqlite-sequence-model"),exports);var smart_log_1=require("@egi/smart-log");Object.defineProperty(exports,"SmartLog",{enumerable:!0,get:function(){return smart_log_1.SmartLog}}),Object.defineProperty(exports,"SmartLocation",{enumerable:!0,get:function(){return smart_log_1.SmartLocation}}),Object.defineProperty(exports,"SmartLogFormatElement",{enumerable:!0,get:function(){return smart_log_1.SmartLogFormatElement}}),Object.defineProperty(exports,"SmartSeverityLevel",{enumerable:!0,get:function(){return smart_log_1.SmartSeverityLevel}}),Object.defineProperty(exports,"smartLog",{enumerable:!0,get:function(){return smart_log_1.smartLog}}),__exportStar(require("./smart-db-globals"),exports),__exportStar(require("./smart-db-interfaces"),exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { AbstractModel } from "./models/abstract-model";
|
|
2
|
+
export { SmartDbDictionary } from "./models/smart-db-dictionary";
|
|
3
|
+
export { FieldNamingStyle, SmartDbReadyState, SqlOperationType, SqlFieldOperationType, DbDictionaryEntry } from "./smart-db-interfaces";
|
|
4
|
+
export type { AbstractModelGlobals, AttributeInfo, GenericModelData, IndexedGenericModelData, KeyValueList, ModelAttributeMap, SectionDescription, SmartDbConnector, SmartDbFieldDescription, SmartDbRunResult, SmartDbSqlBuildDataResults, SmartDbSqlComparison, SmartDbSqlOptions, SmartDbTableInfo, SqlFieldDescriptor, SqlLimit, SqlOperation, SqlOrderBy, SqlUpdateValues, SqlValueType, SqlWhere } from "./smart-db-interfaces";
|
|
5
|
+
export { ModelClass } from "./smart-db-interfaces";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SqlFieldOperationType=exports.SqlOperationType=exports.SmartDbReadyState=exports.FieldNamingStyle=exports.SmartDbDictionary=exports.AbstractModel=void 0;var abstract_model_1=require("./models/abstract-model");Object.defineProperty(exports,"AbstractModel",{enumerable:!0,get:function(){return abstract_model_1.AbstractModel}});var smart_db_dictionary_1=require("./models/smart-db-dictionary");Object.defineProperty(exports,"SmartDbDictionary",{enumerable:!0,get:function(){return smart_db_dictionary_1.SmartDbDictionary}});var smart_db_interfaces_1=require("./smart-db-interfaces");Object.defineProperty(exports,"FieldNamingStyle",{enumerable:!0,get:function(){return smart_db_interfaces_1.FieldNamingStyle}}),Object.defineProperty(exports,"SmartDbReadyState",{enumerable:!0,get:function(){return smart_db_interfaces_1.SmartDbReadyState}}),Object.defineProperty(exports,"SqlOperationType",{enumerable:!0,get:function(){return smart_db_interfaces_1.SqlOperationType}}),Object.defineProperty(exports,"SqlFieldOperationType",{enumerable:!0,get:function(){return smart_db_interfaces_1.SqlFieldOperationType}});
|
package/smart-db-globals.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { SqlFieldDescriptor, SqlOperation, SqlOperationType, SqlValueType } from "./smart-db-interfaces";
|
|
2
|
-
|
|
2
|
+
import { DateTime } from "luxon";
|
|
3
|
+
export declare const OP: (op: SqlOperationType, value?: SqlValueType | SqlValueType[], literalOp?: SqlOperationType) => SqlOperation;
|
|
3
4
|
export declare const VALUE: (value: SqlValueType, alias?: string, literal?: boolean) => SqlFieldDescriptor;
|
|
4
5
|
export declare const FIELD: (value: string, alias?: string) => SqlFieldDescriptor;
|
|
5
6
|
export declare const COUNT: (value?: string, alias?: string) => SqlFieldDescriptor;
|
|
7
|
+
export declare const COUNT_FIELD: (field?: string, alias?: string) => SqlFieldDescriptor;
|
|
8
|
+
export declare const MAX: (value?: string, alias?: string) => SqlFieldDescriptor;
|
|
9
|
+
export declare const MIN: (value?: string, alias?: string) => SqlFieldDescriptor;
|
|
10
|
+
export declare const SUM: (value?: string, alias?: string) => SqlFieldDescriptor;
|
|
11
|
+
export declare const AVG: (value?: string, alias?: string) => SqlFieldDescriptor;
|
|
6
12
|
export declare const COALESCE: (values: (SqlFieldDescriptor | SqlValueType)[], alias?: string) => SqlFieldDescriptor;
|
|
7
13
|
export declare const NVL: (values: (SqlFieldDescriptor | SqlValueType)[], alias?: string) => SqlFieldDescriptor;
|
|
8
|
-
export declare const LITERAL: (
|
|
14
|
+
export declare const LITERAL: (value: string, op?: SqlOperationType) => SqlOperation;
|
|
9
15
|
export declare const GT: (value: SqlValueType) => SqlOperation;
|
|
16
|
+
export declare const BETWEEN: (min: SqlValueType, max: SqlValueType) => SqlOperation;
|
|
10
17
|
export declare const GE: (value: SqlValueType) => SqlOperation;
|
|
11
18
|
export declare const LT: (value: SqlValueType) => SqlOperation;
|
|
12
19
|
export declare const LE: (value: SqlValueType) => SqlOperation;
|
|
@@ -20,6 +27,31 @@ export declare const LIKE: (value: SqlValueType) => SqlOperation;
|
|
|
20
27
|
export declare const NOT_LIKE: (value: SqlValueType) => SqlOperation;
|
|
21
28
|
export declare const SmartDbDateRegexp: RegExp;
|
|
22
29
|
export declare const SmartDbTimestampRegexp: RegExp;
|
|
23
|
-
export declare
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
export declare const validDateTimeFormats: string[];
|
|
31
|
+
/**
|
|
32
|
+
* Returns a DB date for a given timezone (local timezone if 'zone' omitted).
|
|
33
|
+
* @param date
|
|
34
|
+
* @param zone
|
|
35
|
+
* @param addZone
|
|
36
|
+
*/
|
|
37
|
+
export declare function toSmartDbDate(date: Date | number | DateTime, zone?: string, addZone?: boolean): string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Returns a DB timestamp for a given timezone (local timezone if 'zone' omitted).
|
|
40
|
+
* @param date
|
|
41
|
+
* @param timezone
|
|
42
|
+
*/
|
|
43
|
+
export declare function toSmartDbTimestamp(date: string | number | Date | DateTime, timezone?: string): string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a timestamp string a given timezone (local timezone if 'zone' omitted).
|
|
46
|
+
* @param date
|
|
47
|
+
* @param zone
|
|
48
|
+
* @param omitZone
|
|
49
|
+
*/
|
|
50
|
+
export declare function toSmartZoneTimestamp(date: Date | number | DateTime, zone?: string, omitZone?: boolean): string | null;
|
|
51
|
+
export declare function smartDbToDate(date: Date | number | string | DateTime, zone?: string): Date | null;
|
|
52
|
+
/**
|
|
53
|
+
* Returns a DataTime string in the given zone (or local timezone if 'zone' is omitted
|
|
54
|
+
* @param date
|
|
55
|
+
* @param zone
|
|
56
|
+
*/
|
|
57
|
+
export declare function smartDbToDateTime(date: Date | number | string | DateTime, zone?: string): DateTime | null;
|