@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.
Files changed (91) hide show
  1. package/README.md +355 -0
  2. package/assets/mysql/smart-db-core-update.001.sql +10 -0
  3. package/assets/oracle/smart-db-core-update.001.sql +13 -0
  4. package/assets/sqlite3/smart-db-core-update.001.sql +10 -0
  5. package/drivers/smart-db-better-sqlite3.d.ts +103 -16
  6. package/drivers/smart-db-better-sqlite3.js +1 -1
  7. package/drivers/smart-db-mysql.d.ts +53 -10
  8. package/drivers/smart-db-mysql.js +1 -1
  9. package/drivers/smart-db-oracle.d.ts +93 -20
  10. package/drivers/smart-db-oracle.js +1 -1
  11. package/helpers/extract-db-api.js +1 -1
  12. package/models/abstract-model.d.ts +39 -4
  13. package/models/abstract-model.js +1 -1
  14. package/models/mysql-tables-model.d.ts +109 -0
  15. package/models/mysql-tables-model.js +1 -0
  16. package/models/oracle-all-cons-columns-model.d.ts +55 -0
  17. package/models/oracle-all-cons-columns-model.js +1 -0
  18. package/models/oracle-all-constraints-model.d.ts +177 -0
  19. package/models/oracle-all-constraints-model.js +1 -0
  20. package/models/oracle-all-dependencies-model.d.ts +77 -0
  21. package/models/oracle-all-dependencies-model.js +1 -0
  22. package/models/oracle-all-objects-model.d.ts +201 -0
  23. package/models/oracle-all-objects-model.js +1 -0
  24. package/models/oracle-all-tab-columns-model.d.ts +305 -0
  25. package/models/oracle-all-tab-columns-model.js +1 -0
  26. package/models/oracle-all-triggers-model.d.ts +187 -0
  27. package/models/oracle-all-triggers-model.js +1 -0
  28. package/{models.generated/smart-db-user-tab-columns-view-model.d.ts → models/smart-db-all-tab-columns-view-model.d.ts} +14 -6
  29. package/models/smart-db-all-tab-columns-view-model.js +1 -0
  30. package/models/smart-db-core-table-model.d.ts +24 -22
  31. package/models/smart-db-core-table-model.js +1 -1
  32. package/models/smart-db-dictionary.d.ts +2 -10
  33. package/models/smart-db-dictionary.js +1 -1
  34. package/models/smart-db-log-model.d.ts +25 -8
  35. package/models/smart-db-log-model.js +1 -1
  36. package/models/smart-db-test-table-model.d.ts +79 -0
  37. package/models/smart-db-test-table-model.js +1 -0
  38. package/models/smart-db-user-tab-columns-view-model.d.ts +2 -0
  39. package/models/smart-db-user-tab-columns-view-model.js +1 -1
  40. package/models/smart-db-version-model.d.ts +25 -8
  41. package/models/smart-db-version-model.js +1 -1
  42. package/models/smart-db-version-view-model.d.ts +27 -8
  43. package/models/smart-db-version-view-model.js +1 -1
  44. package/models/sqlite-master-model.d.ts +14 -12
  45. package/models/sqlite-master-model.js +1 -1
  46. package/models/sqlite-sequence-model.d.ts +9 -7
  47. package/models/sqlite-sequence-model.js +1 -1
  48. package/package.json +40 -56
  49. package/smart-db-api.d.ts +2 -1
  50. package/smart-db-api.js +1 -1
  51. package/smart-db-browser.d.ts +5 -0
  52. package/smart-db-browser.js +1 -0
  53. package/smart-db-globals.d.ts +37 -5
  54. package/smart-db-globals.js +1 -1
  55. package/smart-db-interfaces.d.ts +330 -40
  56. package/smart-db-interfaces.js +1 -1
  57. package/smart-db-sql-build-data.d.ts +10 -1
  58. package/smart-db-sql-build-data.js +1 -1
  59. package/smart-db-upgrade-manager.d.ts +6 -4
  60. package/smart-db-upgrade-manager.js +1 -1
  61. package/smart-db.d.ts +451 -55
  62. package/smart-db.js +1 -1
  63. package/smart-error.d.ts +9 -28
  64. package/smart-error.js +1 -1
  65. package/smart-tools.d.ts +178 -0
  66. package/smart-tools.js +1 -0
  67. package/drivers/smart-db-mysql2.d.ts +0 -20
  68. package/drivers/smart-db-mysql2.js +0 -1
  69. package/drivers/smart-db-sqlite3.d.ts +0 -23
  70. package/drivers/smart-db-sqlite3.js +0 -1
  71. package/models/oracle-cat-model.d.ts +0 -23
  72. package/models/oracle-cat-model.js +0 -1
  73. package/models/oracle-user-tab-columns-model.d.ts +0 -39
  74. package/models/oracle-user-tab-columns-model.js +0 -1
  75. package/models/oracle-user-tab-columns-view-model.d.ts +0 -43
  76. package/models/oracle-user-tab-columns-view-model.js +0 -1
  77. package/models.generated/abstract-model.d.ts +0 -23
  78. package/models.generated/abstract-model.js +0 -1
  79. package/models.generated/smart-db-core-table-model.d.ts +0 -41
  80. package/models.generated/smart-db-core-table-model.js +0 -1
  81. package/models.generated/smart-db-dictionary.d.ts +0 -14
  82. package/models.generated/smart-db-dictionary.js +0 -1
  83. package/models.generated/smart-db-log-model.d.ts +0 -82
  84. package/models.generated/smart-db-log-model.js +0 -1
  85. package/models.generated/smart-db-user-tab-columns-view-model.js +0 -1
  86. package/models.generated/smart-db-version-model.d.ts +0 -82
  87. package/models.generated/smart-db-version-model.js +0 -1
  88. package/models.generated/smart-db-version-view-model.d.ts +0 -90
  89. package/models.generated/smart-db-version-view-model.js +0 -1
  90. package/smart-db-log.d.ts +0 -40
  91. package/smart-db-log.js +0 -1
@@ -1,41 +0,0 @@
1
- import { GenericModelData, ModelAttributeMap } from "../smart-db-interfaces";
2
- import { AbstractModel } from "../models/abstract-model";
3
- export interface SmartDbCoreTableModelData extends GenericModelData {
4
- id?: number;
5
- name?: string;
6
- type?: string;
7
- }
8
- export declare class SmartDbCoreTableModel extends AbstractModel<SmartDbCoreTableModel, SmartDbCoreTableModelData> {
9
- private _id?;
10
- private _name?;
11
- private _type?;
12
- static readonly attributeMap: ModelAttributeMap;
13
- static getClassName(): string;
14
- static getTableName(): string;
15
- static getPrimaryKey(): string;
16
- static from(other: SmartDbCoreTableModel | SmartDbCoreTableModelData): SmartDbCoreTableModel;
17
- constructor(data?: SmartDbCoreTableModel | SmartDbCoreTableModelData);
18
- clone(): SmartDbCoreTableModel;
19
- getClassName(): string;
20
- getTableName(): string;
21
- getPrimaryKey(): string;
22
- getAttributeMap(): ModelAttributeMap;
23
- get id(): number;
24
- set id(id: number);
25
- get ctb_id(): number;
26
- set ctb_id(id: number);
27
- get CTB_ID(): number;
28
- set CTB_ID(id: number);
29
- get name(): string;
30
- set name(name: string);
31
- get ctb_name(): string;
32
- set ctb_name(name: string);
33
- get CTB_NAME(): string;
34
- set CTB_NAME(name: string);
35
- get type(): string;
36
- set type(type: string);
37
- get ctb_type(): string;
38
- set ctb_type(type: string);
39
- get CTB_TYPE(): string;
40
- set CTB_TYPE(type: string);
41
- }
@@ -1 +0,0 @@
1
- import{AbstractModel}from"../models/abstract-model";export class SmartDbCoreTableModel extends AbstractModel{constructor(t){super(),t&&this.assign(t)}static getClassName(){return"SmartDbCoreTableModel"}static getTableName(){return"smart_db_core_table"}static getPrimaryKey(){return"CTB_ID"}static from(t){let e=null;return t&&(e=new SmartDbCoreTableModel,t instanceof SmartDbCoreTableModel?Object.assign(e,t):e.assign(t)),e}clone(){return SmartDbCoreTableModel.from(this)}getClassName(){return"SmartDbCoreTableModel"}getTableName(){return"smart_db_core_table"}getPrimaryKey(){return"CTB_ID"}getAttributeMap(){return SmartDbCoreTableModel.attributeMap}get id(){return this._id}set id(t){this._id=t}get ctb_id(){return this._id}set ctb_id(t){this._id=t}get CTB_ID(){return this._id}set CTB_ID(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get ctb_name(){return this._name}set ctb_name(t){this._name=t}get CTB_NAME(){return this._name}set CTB_NAME(t){this._name=t}get type(){return this._type}set type(t){this._type=t}get ctb_type(){return this._type}set ctb_type(t){this._type=t}get CTB_TYPE(){return this._type}set CTB_TYPE(t){this._type=t}}SmartDbCoreTableModel.attributeMap={id:{alias:"CTB_ID",typeScriptStyle:!0,type:"number",attribute:"_id"},ctb_id:{type:"number",attribute:"_id"},CTB_ID:{physical:!0,type:"number",attribute:"_id"},name:{alias:"CTB_NAME",typeScriptStyle:!0,type:"string",attribute:"_name"},ctb_name:{type:"string",attribute:"_name"},CTB_NAME:{physical:!0,type:"string",attribute:"_name"},type:{alias:"CTB_TYPE",typeScriptStyle:!0,type:"string",attribute:"_type"},ctb_type:{type:"string",attribute:"_type"},CTB_TYPE:{physical:!0,type:"string",attribute:"_type"}};
@@ -1,14 +0,0 @@
1
- import { SmartDbCoreTableModel } from "./smart-db-core-table-model";
2
- import { SmartDbLogModel } from "./smart-db-log-model";
3
- import { SmartDbUserTabColumnsViewModel } from "./smart-db-user-tab-columns-view-model";
4
- import { SmartDbVersionModel } from "./smart-db-version-model";
5
- import { SmartDbVersionViewModel } from "./smart-db-version-view-model";
6
- interface SmartDbDictionaryEntry {
7
- cls: typeof SmartDbCoreTableModel | typeof SmartDbLogModel | typeof SmartDbUserTabColumnsViewModel | typeof SmartDbVersionModel | typeof SmartDbVersionViewModel;
8
- }
9
- export declare class SmartDbDictionary {
10
- static models: {
11
- [relation: string]: SmartDbDictionaryEntry;
12
- };
13
- }
14
- export {};
@@ -1 +0,0 @@
1
- import{SmartDbCoreTableModel}from"./smart-db-core-table-model";import{SmartDbLogModel}from"./smart-db-log-model";import{SmartDbUserTabColumnsViewModel}from"./smart-db-user-tab-columns-view-model";import{SmartDbVersionModel}from"./smart-db-version-model";import{SmartDbVersionViewModel}from"./smart-db-version-view-model";export class SmartDbDictionary{}SmartDbDictionary.models={SmartDbCoreTableModel:{cls:SmartDbCoreTableModel},SmartDbLogModel:{cls:SmartDbLogModel},SmartDbUserTabColumnsViewModel:{cls:SmartDbUserTabColumnsViewModel},SmartDbVersionModel:{cls:SmartDbVersionModel},SmartDbVersionViewModel:{cls:SmartDbVersionViewModel}};
@@ -1,82 +0,0 @@
1
- import { GenericModelData, ModelAttributeMap } from "../smart-db-interfaces";
2
- import { AbstractModel } from "../models/abstract-model";
3
- import { SqlValueType } from "../smart-db-interfaces";
4
- export interface SmartDbLogModelData extends GenericModelData {
5
- id?: number;
6
- severity?: string;
7
- type?: string;
8
- location?: string;
9
- info?: string;
10
- data?: string;
11
- user?: string;
12
- timestamp?: SqlValueType;
13
- }
14
- export declare class SmartDbLogModel extends AbstractModel<SmartDbLogModel, SmartDbLogModelData> {
15
- private _id?;
16
- private _severity?;
17
- private _type?;
18
- private _location?;
19
- private _info?;
20
- private _data?;
21
- private _user?;
22
- private _timestamp?;
23
- static readonly attributeMap: ModelAttributeMap;
24
- static getClassName(): string;
25
- static getTableName(): string;
26
- static getPrimaryKey(): string;
27
- static from(other: SmartDbLogModel | SmartDbLogModelData): SmartDbLogModel;
28
- constructor(data?: SmartDbLogModel | SmartDbLogModelData);
29
- clone(): SmartDbLogModel;
30
- getClassName(): string;
31
- getTableName(): string;
32
- getPrimaryKey(): string;
33
- getAttributeMap(): ModelAttributeMap;
34
- get id(): number;
35
- set id(id: number);
36
- get log_id(): number;
37
- set log_id(id: number);
38
- get LOG_ID(): number;
39
- set LOG_ID(id: number);
40
- get severity(): string;
41
- set severity(severity: string);
42
- get log_severity(): string;
43
- set log_severity(severity: string);
44
- get LOG_SEVERITY(): string;
45
- set LOG_SEVERITY(severity: string);
46
- get type(): string;
47
- set type(type: string);
48
- get log_type(): string;
49
- set log_type(type: string);
50
- get LOG_TYPE(): string;
51
- set LOG_TYPE(type: string);
52
- get location(): string;
53
- set location(location: string);
54
- get log_location(): string;
55
- set log_location(location: string);
56
- get LOG_LOCATION(): string;
57
- set LOG_LOCATION(location: string);
58
- get info(): string;
59
- set info(info: string);
60
- get log_info(): string;
61
- set log_info(info: string);
62
- get LOG_INFO(): string;
63
- set LOG_INFO(info: string);
64
- get data(): string;
65
- set data(data: string);
66
- get log_data(): string;
67
- set log_data(data: string);
68
- get LOG_DATA(): string;
69
- set LOG_DATA(data: string);
70
- get user(): string;
71
- set user(user: string);
72
- get log_user(): string;
73
- set log_user(user: string);
74
- get LOG_USER(): string;
75
- set LOG_USER(user: string);
76
- get timestamp(): SqlValueType;
77
- set timestamp(timestamp: SqlValueType);
78
- get log_timestamp(): SqlValueType;
79
- set log_timestamp(timestamp: SqlValueType);
80
- get LOG_TIMESTAMP(): SqlValueType;
81
- set LOG_TIMESTAMP(timestamp: SqlValueType);
82
- }
@@ -1 +0,0 @@
1
- import{AbstractModel}from"../models/abstract-model";export class SmartDbLogModel extends AbstractModel{constructor(t){super(),t&&this.assign(t)}static getClassName(){return"SmartDbLogModel"}static getTableName(){return"smart_db_log"}static getPrimaryKey(){return"LOG_ID"}static from(t){let e=null;return t&&(e=new SmartDbLogModel,t instanceof SmartDbLogModel?Object.assign(e,t):e.assign(t)),e}clone(){return SmartDbLogModel.from(this)}getClassName(){return"SmartDbLogModel"}getTableName(){return"smart_db_log"}getPrimaryKey(){return"LOG_ID"}getAttributeMap(){return SmartDbLogModel.attributeMap}get id(){return this._id}set id(t){this._id=t}get log_id(){return this._id}set log_id(t){this._id=t}get LOG_ID(){return this._id}set LOG_ID(t){this._id=t}get severity(){return this._severity}set severity(t){this._severity=t}get log_severity(){return this._severity}set log_severity(t){this._severity=t}get LOG_SEVERITY(){return this._severity}set LOG_SEVERITY(t){this._severity=t}get type(){return this._type}set type(t){this._type=t}get log_type(){return this._type}set log_type(t){this._type=t}get LOG_TYPE(){return this._type}set LOG_TYPE(t){this._type=t}get location(){return this._location}set location(t){this._location=t}get log_location(){return this._location}set log_location(t){this._location=t}get LOG_LOCATION(){return this._location}set LOG_LOCATION(t){this._location=t}get info(){return this._info}set info(t){this._info=t}get log_info(){return this._info}set log_info(t){this._info=t}get LOG_INFO(){return this._info}set LOG_INFO(t){this._info=t}get data(){return this._data}set data(t){this._data=t}get log_data(){return this._data}set log_data(t){this._data=t}get LOG_DATA(){return this._data}set LOG_DATA(t){this._data=t}get user(){return this._user}set user(t){this._user=t}get log_user(){return this._user}set log_user(t){this._user=t}get LOG_USER(){return this._user}set LOG_USER(t){this._user=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get log_timestamp(){return this._timestamp}set log_timestamp(t){this._timestamp=t}get LOG_TIMESTAMP(){return this._timestamp}set LOG_TIMESTAMP(t){this._timestamp=t}}SmartDbLogModel.attributeMap={id:{alias:"LOG_ID",typeScriptStyle:!0,type:"number",attribute:"_id"},log_id:{type:"number",attribute:"_id"},LOG_ID:{physical:!0,type:"number",attribute:"_id"},severity:{alias:"LOG_SEVERITY",typeScriptStyle:!0,type:"string",attribute:"_severity"},log_severity:{type:"string",attribute:"_severity"},LOG_SEVERITY:{physical:!0,type:"string",attribute:"_severity"},type:{alias:"LOG_TYPE",typeScriptStyle:!0,type:"string",attribute:"_type"},log_type:{type:"string",attribute:"_type"},LOG_TYPE:{physical:!0,type:"string",attribute:"_type"},location:{alias:"LOG_LOCATION",typeScriptStyle:!0,type:"string",attribute:"_location"},log_location:{type:"string",attribute:"_location"},LOG_LOCATION:{physical:!0,type:"string",attribute:"_location"},info:{alias:"LOG_INFO",typeScriptStyle:!0,type:"string",attribute:"_info"},log_info:{type:"string",attribute:"_info"},LOG_INFO:{physical:!0,type:"string",attribute:"_info"},data:{alias:"LOG_DATA",typeScriptStyle:!0,type:"string",attribute:"_data"},log_data:{type:"string",attribute:"_data"},LOG_DATA:{physical:!0,type:"string",attribute:"_data"},user:{alias:"LOG_USER",typeScriptStyle:!0,type:"string",attribute:"_user"},log_user:{type:"string",attribute:"_user"},LOG_USER:{physical:!0,type:"string",attribute:"_user"},timestamp:{alias:"LOG_TIMESTAMP",typeScriptStyle:!0,type:"SqlValueType",attribute:"_timestamp"},log_timestamp:{type:"SqlValueType",attribute:"_timestamp"},LOG_TIMESTAMP:{physical:!0,type:"SqlValueType",attribute:"_timestamp"}};
@@ -1 +0,0 @@
1
- import{AbstractModel}from"../models/abstract-model";export class SmartDbUserTabColumnsViewModel extends AbstractModel{constructor(t){super(),t&&this.assign(t)}static getClassName(){return"SmartDbUserTabColumnsViewModel"}static getTableName(){return"smart_db_user_tab_columns_view"}static getPrimaryKey(){return""}static from(t){let e=null;return t&&(e=new SmartDbUserTabColumnsViewModel,t instanceof SmartDbUserTabColumnsViewModel?Object.assign(e,t):e.assign(t)),e}clone(){return SmartDbUserTabColumnsViewModel.from(this)}getClassName(){return"SmartDbUserTabColumnsViewModel"}getTableName(){return"smart_db_user_tab_columns_view"}getPrimaryKey(){return""}getAttributeMap(){return SmartDbUserTabColumnsViewModel.attributeMap}get constraintType(){return this._constraintType}set constraintType(t){this._constraintType=t}get constraint_type(){return this._constraintType}set constraint_type(t){this._constraintType=t}get CONSTRAINT_TYPE(){return this._constraintType}set CONSTRAINT_TYPE(t){this._constraintType=t}get tableName(){return this._tableName}set tableName(t){this._tableName=t}get table_name(){return this._tableName}set table_name(t){this._tableName=t}get TABLE_NAME(){return this._tableName}set TABLE_NAME(t){this._tableName=t}get columnName(){return this._columnName}set columnName(t){this._columnName=t}get column_name(){return this._columnName}set column_name(t){this._columnName=t}get COLUMN_NAME(){return this._columnName}set COLUMN_NAME(t){this._columnName=t}get dataType(){return this._dataType}set dataType(t){this._dataType=t}get data_type(){return this._dataType}set data_type(t){this._dataType=t}get DATA_TYPE(){return this._dataType}set DATA_TYPE(t){this._dataType=t}get dataTypeMod(){return this._dataTypeMod}set dataTypeMod(t){this._dataTypeMod=t}get data_type_mod(){return this._dataTypeMod}set data_type_mod(t){this._dataTypeMod=t}get DATA_TYPE_MOD(){return this._dataTypeMod}set DATA_TYPE_MOD(t){this._dataTypeMod=t}get dataTypeOwner(){return this._dataTypeOwner}set dataTypeOwner(t){this._dataTypeOwner=t}get data_type_owner(){return this._dataTypeOwner}set data_type_owner(t){this._dataTypeOwner=t}get DATA_TYPE_OWNER(){return this._dataTypeOwner}set DATA_TYPE_OWNER(t){this._dataTypeOwner=t}get dataLength(){return this._dataLength}set dataLength(t){this._dataLength=t}get data_length(){return this._dataLength}set data_length(t){this._dataLength=t}get DATA_LENGTH(){return this._dataLength}set DATA_LENGTH(t){this._dataLength=t}get dataPrecision(){return this._dataPrecision}set dataPrecision(t){this._dataPrecision=t}get data_precision(){return this._dataPrecision}set data_precision(t){this._dataPrecision=t}get DATA_PRECISION(){return this._dataPrecision}set DATA_PRECISION(t){this._dataPrecision=t}get dataScale(){return this._dataScale}set dataScale(t){this._dataScale=t}get data_scale(){return this._dataScale}set data_scale(t){this._dataScale=t}get DATA_SCALE(){return this._dataScale}set DATA_SCALE(t){this._dataScale=t}get nullable(){return this._nullable}set nullable(t){this._nullable=t}get NULLABLE(){return this._nullable}set NULLABLE(t){this._nullable=t}get columnId(){return this._columnId}set columnId(t){this._columnId=t}get column_id(){return this._columnId}set column_id(t){this._columnId=t}get COLUMN_ID(){return this._columnId}set COLUMN_ID(t){this._columnId=t}get defaultLength(){return this._defaultLength}set defaultLength(t){this._defaultLength=t}get default_length(){return this._defaultLength}set default_length(t){this._defaultLength=t}get DEFAULT_LENGTH(){return this._defaultLength}set DEFAULT_LENGTH(t){this._defaultLength=t}get dataDefault(){return this._dataDefault}set dataDefault(t){this._dataDefault=t}get data_default(){return this._dataDefault}set data_default(t){this._dataDefault=t}get DATA_DEFAULT(){return this._dataDefault}set DATA_DEFAULT(t){this._dataDefault=t}get numDistinct(){return this._numDistinct}set numDistinct(t){this._numDistinct=t}get num_distinct(){return this._numDistinct}set num_distinct(t){this._numDistinct=t}get NUM_DISTINCT(){return this._numDistinct}set NUM_DISTINCT(t){this._numDistinct=t}get lowValue(){return this._lowValue}set lowValue(t){this._lowValue=t}get low_value(){return this._lowValue}set low_value(t){this._lowValue=t}get LOW_VALUE(){return this._lowValue}set LOW_VALUE(t){this._lowValue=t}get highValue(){return this._highValue}set highValue(t){this._highValue=t}get high_value(){return this._highValue}set high_value(t){this._highValue=t}get HIGH_VALUE(){return this._highValue}set HIGH_VALUE(t){this._highValue=t}get density(){return this._density}set density(t){this._density=t}get DENSITY(){return this._density}set DENSITY(t){this._density=t}get numNulls(){return this._numNulls}set numNulls(t){this._numNulls=t}get num_nulls(){return this._numNulls}set num_nulls(t){this._numNulls=t}get NUM_NULLS(){return this._numNulls}set NUM_NULLS(t){this._numNulls=t}get numBuckets(){return this._numBuckets}set numBuckets(t){this._numBuckets=t}get num_buckets(){return this._numBuckets}set num_buckets(t){this._numBuckets=t}get NUM_BUCKETS(){return this._numBuckets}set NUM_BUCKETS(t){this._numBuckets=t}get lastAnalyzed(){return this._lastAnalyzed}set lastAnalyzed(t){this._lastAnalyzed=t}get last_analyzed(){return this._lastAnalyzed}set last_analyzed(t){this._lastAnalyzed=t}get LAST_ANALYZED(){return this._lastAnalyzed}set LAST_ANALYZED(t){this._lastAnalyzed=t}get sampleSize(){return this._sampleSize}set sampleSize(t){this._sampleSize=t}get sample_size(){return this._sampleSize}set sample_size(t){this._sampleSize=t}get SAMPLE_SIZE(){return this._sampleSize}set SAMPLE_SIZE(t){this._sampleSize=t}get characterSetName(){return this._characterSetName}set characterSetName(t){this._characterSetName=t}get character_set_name(){return this._characterSetName}set character_set_name(t){this._characterSetName=t}get CHARACTER_SET_NAME(){return this._characterSetName}set CHARACTER_SET_NAME(t){this._characterSetName=t}get charColDeclLength(){return this._charColDeclLength}set charColDeclLength(t){this._charColDeclLength=t}get char_col_decl_length(){return this._charColDeclLength}set char_col_decl_length(t){this._charColDeclLength=t}get CHAR_COL_DECL_LENGTH(){return this._charColDeclLength}set CHAR_COL_DECL_LENGTH(t){this._charColDeclLength=t}get globalStats(){return this._globalStats}set globalStats(t){this._globalStats=t}get global_stats(){return this._globalStats}set global_stats(t){this._globalStats=t}get GLOBAL_STATS(){return this._globalStats}set GLOBAL_STATS(t){this._globalStats=t}get userStats(){return this._userStats}set userStats(t){this._userStats=t}get user_stats(){return this._userStats}set user_stats(t){this._userStats=t}get USER_STATS(){return this._userStats}set USER_STATS(t){this._userStats=t}get avgColLen(){return this._avgColLen}set avgColLen(t){this._avgColLen=t}get avg_col_len(){return this._avgColLen}set avg_col_len(t){this._avgColLen=t}get AVG_COL_LEN(){return this._avgColLen}set AVG_COL_LEN(t){this._avgColLen=t}get charLength(){return this._charLength}set charLength(t){this._charLength=t}get char_length(){return this._charLength}set char_length(t){this._charLength=t}get CHAR_LENGTH(){return this._charLength}set CHAR_LENGTH(t){this._charLength=t}get charUsed(){return this._charUsed}set charUsed(t){this._charUsed=t}get char_used(){return this._charUsed}set char_used(t){this._charUsed=t}get CHAR_USED(){return this._charUsed}set CHAR_USED(t){this._charUsed=t}get v80FmtImage(){return this._v80FmtImage}set v80FmtImage(t){this._v80FmtImage=t}get v80_fmt_image(){return this._v80FmtImage}set v80_fmt_image(t){this._v80FmtImage=t}get V80_FMT_IMAGE(){return this._v80FmtImage}set V80_FMT_IMAGE(t){this._v80FmtImage=t}get dataUpgraded(){return this._dataUpgraded}set dataUpgraded(t){this._dataUpgraded=t}get data_upgraded(){return this._dataUpgraded}set data_upgraded(t){this._dataUpgraded=t}get DATA_UPGRADED(){return this._dataUpgraded}set DATA_UPGRADED(t){this._dataUpgraded=t}get histogram(){return this._histogram}set histogram(t){this._histogram=t}get HISTOGRAM(){return this._histogram}set HISTOGRAM(t){this._histogram=t}get defaultOnNull(){return this._defaultOnNull}set defaultOnNull(t){this._defaultOnNull=t}get default_on_null(){return this._defaultOnNull}set default_on_null(t){this._defaultOnNull=t}get DEFAULT_ON_NULL(){return this._defaultOnNull}set DEFAULT_ON_NULL(t){this._defaultOnNull=t}get identityColumn(){return this._identityColumn}set identityColumn(t){this._identityColumn=t}get identity_column(){return this._identityColumn}set identity_column(t){this._identityColumn=t}get IDENTITY_COLUMN(){return this._identityColumn}set IDENTITY_COLUMN(t){this._identityColumn=t}get evaluationEdition(){return this._evaluationEdition}set evaluationEdition(t){this._evaluationEdition=t}get evaluation_edition(){return this._evaluationEdition}set evaluation_edition(t){this._evaluationEdition=t}get EVALUATION_EDITION(){return this._evaluationEdition}set EVALUATION_EDITION(t){this._evaluationEdition=t}get unusableBefore(){return this._unusableBefore}set unusableBefore(t){this._unusableBefore=t}get unusable_before(){return this._unusableBefore}set unusable_before(t){this._unusableBefore=t}get UNUSABLE_BEFORE(){return this._unusableBefore}set UNUSABLE_BEFORE(t){this._unusableBefore=t}get unusableBeginning(){return this._unusableBeginning}set unusableBeginning(t){this._unusableBeginning=t}get unusable_beginning(){return this._unusableBeginning}set unusable_beginning(t){this._unusableBeginning=t}get UNUSABLE_BEGINNING(){return this._unusableBeginning}set UNUSABLE_BEGINNING(t){this._unusableBeginning=t}get collation(){return this._collation}set collation(t){this._collation=t}get COLLATION(){return this._collation}set COLLATION(t){this._collation=t}}SmartDbUserTabColumnsViewModel.attributeMap={constraintType:{alias:"CONSTRAINT_TYPE",typeScriptStyle:!0,type:"string",attribute:"_constraintType"},constraint_type:{type:"string",attribute:"_constraintType"},CONSTRAINT_TYPE:{physical:!0,type:"string",attribute:"_constraintType"},tableName:{alias:"TABLE_NAME",typeScriptStyle:!0,type:"string",attribute:"_tableName"},table_name:{type:"string",attribute:"_tableName"},TABLE_NAME:{physical:!0,type:"string",attribute:"_tableName"},columnName:{alias:"COLUMN_NAME",typeScriptStyle:!0,type:"string",attribute:"_columnName"},column_name:{type:"string",attribute:"_columnName"},COLUMN_NAME:{physical:!0,type:"string",attribute:"_columnName"},dataType:{alias:"DATA_TYPE",typeScriptStyle:!0,type:"string",attribute:"_dataType"},data_type:{type:"string",attribute:"_dataType"},DATA_TYPE:{physical:!0,type:"string",attribute:"_dataType"},dataTypeMod:{alias:"DATA_TYPE_MOD",typeScriptStyle:!0,type:"string",attribute:"_dataTypeMod"},data_type_mod:{type:"string",attribute:"_dataTypeMod"},DATA_TYPE_MOD:{physical:!0,type:"string",attribute:"_dataTypeMod"},dataTypeOwner:{alias:"DATA_TYPE_OWNER",typeScriptStyle:!0,type:"string",attribute:"_dataTypeOwner"},data_type_owner:{type:"string",attribute:"_dataTypeOwner"},DATA_TYPE_OWNER:{physical:!0,type:"string",attribute:"_dataTypeOwner"},dataLength:{alias:"DATA_LENGTH",typeScriptStyle:!0,type:"number",attribute:"_dataLength"},data_length:{type:"number",attribute:"_dataLength"},DATA_LENGTH:{physical:!0,type:"number",attribute:"_dataLength"},dataPrecision:{alias:"DATA_PRECISION",typeScriptStyle:!0,type:"number",attribute:"_dataPrecision"},data_precision:{type:"number",attribute:"_dataPrecision"},DATA_PRECISION:{physical:!0,type:"number",attribute:"_dataPrecision"},dataScale:{alias:"DATA_SCALE",typeScriptStyle:!0,type:"number",attribute:"_dataScale"},data_scale:{type:"number",attribute:"_dataScale"},DATA_SCALE:{physical:!0,type:"number",attribute:"_dataScale"},nullable:{alias:"NULLABLE",typeScriptStyle:!0,type:"string",attribute:"_nullable"},NULLABLE:{physical:!0,type:"string",attribute:"_nullable"},columnId:{alias:"COLUMN_ID",typeScriptStyle:!0,type:"number",attribute:"_columnId"},column_id:{type:"number",attribute:"_columnId"},COLUMN_ID:{physical:!0,type:"number",attribute:"_columnId"},defaultLength:{alias:"DEFAULT_LENGTH",typeScriptStyle:!0,type:"number",attribute:"_defaultLength"},default_length:{type:"number",attribute:"_defaultLength"},DEFAULT_LENGTH:{physical:!0,type:"number",attribute:"_defaultLength"},dataDefault:{alias:"DATA_DEFAULT",typeScriptStyle:!0,type:"any",attribute:"_dataDefault"},data_default:{type:"any",attribute:"_dataDefault"},DATA_DEFAULT:{physical:!0,type:"any",attribute:"_dataDefault"},numDistinct:{alias:"NUM_DISTINCT",typeScriptStyle:!0,type:"number",attribute:"_numDistinct"},num_distinct:{type:"number",attribute:"_numDistinct"},NUM_DISTINCT:{physical:!0,type:"number",attribute:"_numDistinct"},lowValue:{alias:"LOW_VALUE",typeScriptStyle:!0,type:"any",attribute:"_lowValue"},low_value:{type:"any",attribute:"_lowValue"},LOW_VALUE:{physical:!0,type:"any",attribute:"_lowValue"},highValue:{alias:"HIGH_VALUE",typeScriptStyle:!0,type:"any",attribute:"_highValue"},high_value:{type:"any",attribute:"_highValue"},HIGH_VALUE:{physical:!0,type:"any",attribute:"_highValue"},density:{alias:"DENSITY",typeScriptStyle:!0,type:"number",attribute:"_density"},DENSITY:{physical:!0,type:"number",attribute:"_density"},numNulls:{alias:"NUM_NULLS",typeScriptStyle:!0,type:"number",attribute:"_numNulls"},num_nulls:{type:"number",attribute:"_numNulls"},NUM_NULLS:{physical:!0,type:"number",attribute:"_numNulls"},numBuckets:{alias:"NUM_BUCKETS",typeScriptStyle:!0,type:"number",attribute:"_numBuckets"},num_buckets:{type:"number",attribute:"_numBuckets"},NUM_BUCKETS:{physical:!0,type:"number",attribute:"_numBuckets"},lastAnalyzed:{alias:"LAST_ANALYZED",typeScriptStyle:!0,type:"Date",attribute:"_lastAnalyzed"},last_analyzed:{type:"Date",attribute:"_lastAnalyzed"},LAST_ANALYZED:{physical:!0,type:"Date",attribute:"_lastAnalyzed"},sampleSize:{alias:"SAMPLE_SIZE",typeScriptStyle:!0,type:"number",attribute:"_sampleSize"},sample_size:{type:"number",attribute:"_sampleSize"},SAMPLE_SIZE:{physical:!0,type:"number",attribute:"_sampleSize"},characterSetName:{alias:"CHARACTER_SET_NAME",typeScriptStyle:!0,type:"string",attribute:"_characterSetName"},character_set_name:{type:"string",attribute:"_characterSetName"},CHARACTER_SET_NAME:{physical:!0,type:"string",attribute:"_characterSetName"},charColDeclLength:{alias:"CHAR_COL_DECL_LENGTH",typeScriptStyle:!0,type:"number",attribute:"_charColDeclLength"},char_col_decl_length:{type:"number",attribute:"_charColDeclLength"},CHAR_COL_DECL_LENGTH:{physical:!0,type:"number",attribute:"_charColDeclLength"},globalStats:{alias:"GLOBAL_STATS",typeScriptStyle:!0,type:"string",attribute:"_globalStats"},global_stats:{type:"string",attribute:"_globalStats"},GLOBAL_STATS:{physical:!0,type:"string",attribute:"_globalStats"},userStats:{alias:"USER_STATS",typeScriptStyle:!0,type:"string",attribute:"_userStats"},user_stats:{type:"string",attribute:"_userStats"},USER_STATS:{physical:!0,type:"string",attribute:"_userStats"},avgColLen:{alias:"AVG_COL_LEN",typeScriptStyle:!0,type:"number",attribute:"_avgColLen"},avg_col_len:{type:"number",attribute:"_avgColLen"},AVG_COL_LEN:{physical:!0,type:"number",attribute:"_avgColLen"},charLength:{alias:"CHAR_LENGTH",typeScriptStyle:!0,type:"number",attribute:"_charLength"},char_length:{type:"number",attribute:"_charLength"},CHAR_LENGTH:{physical:!0,type:"number",attribute:"_charLength"},charUsed:{alias:"CHAR_USED",typeScriptStyle:!0,type:"string",attribute:"_charUsed"},char_used:{type:"string",attribute:"_charUsed"},CHAR_USED:{physical:!0,type:"string",attribute:"_charUsed"},v80FmtImage:{alias:"V80_FMT_IMAGE",typeScriptStyle:!0,type:"string",attribute:"_v80FmtImage"},v80_fmt_image:{type:"string",attribute:"_v80FmtImage"},V80_FMT_IMAGE:{physical:!0,type:"string",attribute:"_v80FmtImage"},dataUpgraded:{alias:"DATA_UPGRADED",typeScriptStyle:!0,type:"string",attribute:"_dataUpgraded"},data_upgraded:{type:"string",attribute:"_dataUpgraded"},DATA_UPGRADED:{physical:!0,type:"string",attribute:"_dataUpgraded"},histogram:{alias:"HISTOGRAM",typeScriptStyle:!0,type:"string",attribute:"_histogram"},HISTOGRAM:{physical:!0,type:"string",attribute:"_histogram"},defaultOnNull:{alias:"DEFAULT_ON_NULL",typeScriptStyle:!0,type:"string",attribute:"_defaultOnNull"},default_on_null:{type:"string",attribute:"_defaultOnNull"},DEFAULT_ON_NULL:{physical:!0,type:"string",attribute:"_defaultOnNull"},identityColumn:{alias:"IDENTITY_COLUMN",typeScriptStyle:!0,type:"string",attribute:"_identityColumn"},identity_column:{type:"string",attribute:"_identityColumn"},IDENTITY_COLUMN:{physical:!0,type:"string",attribute:"_identityColumn"},evaluationEdition:{alias:"EVALUATION_EDITION",typeScriptStyle:!0,type:"string",attribute:"_evaluationEdition"},evaluation_edition:{type:"string",attribute:"_evaluationEdition"},EVALUATION_EDITION:{physical:!0,type:"string",attribute:"_evaluationEdition"},unusableBefore:{alias:"UNUSABLE_BEFORE",typeScriptStyle:!0,type:"string",attribute:"_unusableBefore"},unusable_before:{type:"string",attribute:"_unusableBefore"},UNUSABLE_BEFORE:{physical:!0,type:"string",attribute:"_unusableBefore"},unusableBeginning:{alias:"UNUSABLE_BEGINNING",typeScriptStyle:!0,type:"string",attribute:"_unusableBeginning"},unusable_beginning:{type:"string",attribute:"_unusableBeginning"},UNUSABLE_BEGINNING:{physical:!0,type:"string",attribute:"_unusableBeginning"},collation:{alias:"COLLATION",typeScriptStyle:!0,type:"string",attribute:"_collation"},COLLATION:{physical:!0,type:"string",attribute:"_collation"}};
@@ -1,82 +0,0 @@
1
- import { GenericModelData, ModelAttributeMap } from "../smart-db-interfaces";
2
- import { AbstractModel } from "../models/abstract-model";
3
- import { SqlValueType } from "../smart-db-interfaces";
4
- export interface SmartDbVersionModelData extends GenericModelData {
5
- id?: number;
6
- module?: string;
7
- sequence?: number;
8
- version?: string;
9
- subVersion?: string;
10
- revision?: string;
11
- releaseType?: string;
12
- installDate?: SqlValueType;
13
- }
14
- export declare class SmartDbVersionModel extends AbstractModel<SmartDbVersionModel, SmartDbVersionModelData> {
15
- private _id?;
16
- private _module?;
17
- private _sequence?;
18
- private _version?;
19
- private _subVersion?;
20
- private _revision?;
21
- private _releaseType?;
22
- private _installDate?;
23
- static readonly attributeMap: ModelAttributeMap;
24
- static getClassName(): string;
25
- static getTableName(): string;
26
- static getPrimaryKey(): string;
27
- static from(other: SmartDbVersionModel | SmartDbVersionModelData): SmartDbVersionModel;
28
- constructor(data?: SmartDbVersionModel | SmartDbVersionModelData);
29
- clone(): SmartDbVersionModel;
30
- getClassName(): string;
31
- getTableName(): string;
32
- getPrimaryKey(): string;
33
- getAttributeMap(): ModelAttributeMap;
34
- get id(): number;
35
- set id(id: number);
36
- get ver_id(): number;
37
- set ver_id(id: number);
38
- get VER_ID(): number;
39
- set VER_ID(id: number);
40
- get module(): string;
41
- set module(module: string);
42
- get ver_module(): string;
43
- set ver_module(module: string);
44
- get VER_MODULE(): string;
45
- set VER_MODULE(module: string);
46
- get sequence(): number;
47
- set sequence(sequence: number);
48
- get ver_sequence(): number;
49
- set ver_sequence(sequence: number);
50
- get VER_SEQUENCE(): number;
51
- set VER_SEQUENCE(sequence: number);
52
- get version(): string;
53
- set version(version: string);
54
- get ver_version(): string;
55
- set ver_version(version: string);
56
- get VER_VERSION(): string;
57
- set VER_VERSION(version: string);
58
- get subVersion(): string;
59
- set subVersion(subVersion: string);
60
- get ver_sub_version(): string;
61
- set ver_sub_version(subVersion: string);
62
- get VER_SUB_VERSION(): string;
63
- set VER_SUB_VERSION(subVersion: string);
64
- get revision(): string;
65
- set revision(revision: string);
66
- get ver_revision(): string;
67
- set ver_revision(revision: string);
68
- get VER_REVISION(): string;
69
- set VER_REVISION(revision: string);
70
- get releaseType(): string;
71
- set releaseType(releaseType: string);
72
- get ver_release_type(): string;
73
- set ver_release_type(releaseType: string);
74
- get VER_RELEASE_TYPE(): string;
75
- set VER_RELEASE_TYPE(releaseType: string);
76
- get installDate(): SqlValueType;
77
- set installDate(installDate: SqlValueType);
78
- get ver_install_date(): SqlValueType;
79
- set ver_install_date(installDate: SqlValueType);
80
- get VER_INSTALL_DATE(): SqlValueType;
81
- set VER_INSTALL_DATE(installDate: SqlValueType);
82
- }
@@ -1 +0,0 @@
1
- import{AbstractModel}from"../models/abstract-model";export class SmartDbVersionModel extends AbstractModel{constructor(e){super(),e&&this.assign(e)}static getClassName(){return"SmartDbVersionModel"}static getTableName(){return"smart_db_version"}static getPrimaryKey(){return"VER_ID"}static from(e){let t=null;return e&&(t=new SmartDbVersionModel,e instanceof SmartDbVersionModel?Object.assign(t,e):t.assign(e)),t}clone(){return SmartDbVersionModel.from(this)}getClassName(){return"SmartDbVersionModel"}getTableName(){return"smart_db_version"}getPrimaryKey(){return"VER_ID"}getAttributeMap(){return SmartDbVersionModel.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}}SmartDbVersionModel.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"}};
@@ -1,90 +0,0 @@
1
- import { GenericModelData, ModelAttributeMap } from "../smart-db-interfaces";
2
- import { AbstractModel } from "../models/abstract-model";
3
- import { SqlValueType } from "../smart-db-interfaces";
4
- export interface SmartDbVersionViewModelData extends GenericModelData {
5
- id?: number;
6
- module?: string;
7
- sequence?: number;
8
- version?: string;
9
- subVersion?: string;
10
- revision?: string;
11
- releaseType?: string;
12
- installDate?: SqlValueType;
13
- versionString?: string;
14
- }
15
- export declare class SmartDbVersionViewModel extends AbstractModel<SmartDbVersionViewModel, SmartDbVersionViewModelData> {
16
- private _id?;
17
- private _module?;
18
- private _sequence?;
19
- private _version?;
20
- private _subVersion?;
21
- private _revision?;
22
- private _releaseType?;
23
- private _installDate?;
24
- private _versionString?;
25
- static readonly attributeMap: ModelAttributeMap;
26
- static getClassName(): string;
27
- static getTableName(): string;
28
- static getPrimaryKey(): string;
29
- static from(other: SmartDbVersionViewModel | SmartDbVersionViewModelData): SmartDbVersionViewModel;
30
- constructor(data?: SmartDbVersionViewModel | SmartDbVersionViewModelData);
31
- clone(): SmartDbVersionViewModel;
32
- getClassName(): string;
33
- getTableName(): string;
34
- getPrimaryKey(): string;
35
- getAttributeMap(): ModelAttributeMap;
36
- get id(): number;
37
- set id(id: number);
38
- get ver_id(): number;
39
- set ver_id(id: number);
40
- get VER_ID(): number;
41
- set VER_ID(id: number);
42
- get module(): string;
43
- set module(module: string);
44
- get ver_module(): string;
45
- set ver_module(module: string);
46
- get VER_MODULE(): string;
47
- set VER_MODULE(module: string);
48
- get sequence(): number;
49
- set sequence(sequence: number);
50
- get ver_sequence(): number;
51
- set ver_sequence(sequence: number);
52
- get VER_SEQUENCE(): number;
53
- set VER_SEQUENCE(sequence: number);
54
- get version(): string;
55
- set version(version: string);
56
- get ver_version(): string;
57
- set ver_version(version: string);
58
- get VER_VERSION(): string;
59
- set VER_VERSION(version: string);
60
- get subVersion(): string;
61
- set subVersion(subVersion: string);
62
- get ver_sub_version(): string;
63
- set ver_sub_version(subVersion: string);
64
- get VER_SUB_VERSION(): string;
65
- set VER_SUB_VERSION(subVersion: string);
66
- get revision(): string;
67
- set revision(revision: string);
68
- get ver_revision(): string;
69
- set ver_revision(revision: string);
70
- get VER_REVISION(): string;
71
- set VER_REVISION(revision: string);
72
- get releaseType(): string;
73
- set releaseType(releaseType: string);
74
- get ver_release_type(): string;
75
- set ver_release_type(releaseType: string);
76
- get VER_RELEASE_TYPE(): string;
77
- set VER_RELEASE_TYPE(releaseType: string);
78
- get installDate(): SqlValueType;
79
- set installDate(installDate: SqlValueType);
80
- get ver_install_date(): SqlValueType;
81
- set ver_install_date(installDate: SqlValueType);
82
- get VER_INSTALL_DATE(): SqlValueType;
83
- set VER_INSTALL_DATE(installDate: SqlValueType);
84
- get versionString(): string;
85
- set versionString(versionString: string);
86
- get ver_version_string(): string;
87
- set ver_version_string(versionString: string);
88
- get VER_VERSION_STRING(): string;
89
- set VER_VERSION_STRING(versionString: string);
90
- }
@@ -1 +0,0 @@
1
- import{AbstractModel}from"../models/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"}};
package/smart-db-log.d.ts DELETED
@@ -1,40 +0,0 @@
1
- import { SmartDb } from "./smart-db";
2
- import { SmartErrorSeverityValue, SmartErrorLocationValue } from "./smart-error";
3
- export declare const SeverityLevel: {
4
- readonly None: 0;
5
- readonly Fatal: 1;
6
- readonly Error: 2;
7
- readonly Warning: 3;
8
- readonly Info: 4;
9
- readonly Debug: 5;
10
- readonly All: 9;
11
- };
12
- export declare type SeverityLevelType = typeof SeverityLevel;
13
- export declare type SeverityLevelKey = keyof SeverityLevelType;
14
- export declare type SeverityLevelValue = SeverityLevelType[keyof SeverityLevelType];
15
- export declare class SmartDbLog {
16
- private db;
17
- private dbLogLevel;
18
- private consoleLogLevel;
19
- private userId;
20
- private dbLogging;
21
- private isLogging;
22
- private logFifo;
23
- constructor(db?: SmartDb);
24
- getConsoleLogLevel(): SeverityLevelValue;
25
- getDbLogLevel(): SeverityLevelValue;
26
- getDbLogging(): boolean;
27
- logDebug(type: SmartErrorLocationValue, location: string, message: string | Error, data?: any): void;
28
- logError(type: SmartErrorLocationValue, location: string, message: string | Error, data?: any): void;
29
- logFatal(type: SmartErrorLocationValue, location: string, message: string | Error, data?: any): void;
30
- logInfo(type: SmartErrorLocationValue, location: string, message: string | Error, data?: any): void;
31
- logWarning(type: SmartErrorLocationValue, location: string, message: string | Error, data?: any): void;
32
- setConsoleLogLevel(consoleLogLevel: SeverityLevelValue): void;
33
- setDb(db: SmartDb): void;
34
- setDbLogLevel(dbLogLevel: SeverityLevelValue): void;
35
- setDbLogging(dbLogging: boolean): void;
36
- setUserId(userId: string | number): void;
37
- writeLog(type: SmartErrorLocationValue, location: string, severity: SmartErrorSeverityValue, message: string | Error, data: unknown, timestamp?: Date | string | number): void;
38
- private nextStackEntry;
39
- }
40
- export declare const smartDbLog: SmartDbLog;
package/smart-db-log.js DELETED
@@ -1 +0,0 @@
1
- import _ from"lodash";import{SmartDbLogModel}from"./models/smart-db-log-model";import{SmartErrorSeverity,SmartErrorLocation}from"./smart-error";import{SmartDbDateRegexp,SmartDbTimestampRegexp,toSmartDbTimestamp}from"./smart-db-globals";export const SeverityLevel={None:0,Fatal:1,Error:2,Warning:3,Info:4,Debug:5,All:9};export class SmartDbLog{constructor(t){this.userId=null,this.dbLogging=!0,this.isLogging=!1,this.logFifo=[],this.db=t,this.dbLogging=!1,this.dbLogLevel=SeverityLevel.Info,this.consoleLogLevel=SeverityLevel.Info}getConsoleLogLevel(){return this.consoleLogLevel}getDbLogLevel(){return this.dbLogLevel}getDbLogging(){return this.dbLogging}logDebug(t,e,r,o){this.writeLog(t,e,SmartErrorSeverity.Debug,r,o)}logError(t,e,r,o){this.writeLog(t,e,SmartErrorSeverity.Error,r,o)}logFatal(t,e,r,o){this.writeLog(t,e,SmartErrorSeverity.Fatal,r,o)}logInfo(t,e,r,o){this.writeLog(t,e,SmartErrorSeverity.Info,r,o)}logWarning(t,e,r,o){this.writeLog(t,e,SmartErrorSeverity.Warning,r,o)}setConsoleLogLevel(t){this.consoleLogLevel=t}setDb(t){this.db=t,this.db?this.db.exists(SmartDbLogModel).then((t=>{this.dbLogging=t})).catch((t=>{throw t})):this.dbLogging=!1}setDbLogLevel(t){this.dbLogLevel=t}setDbLogging(t){this.dbLogging=t}setUserId(t){this.userId=t}writeLog(t,e,r,o,i,s){try{if(this.isLogging)this.logFifo.push({type:t,location:e,severity:r,message:o,data:i,timestamp:s??new Date});else{this.isLogging=!0;let a,g,n=SeverityLevel.None;switch(r){case SmartErrorSeverity.Fatal:a=console.error,n=SeverityLevel.Fatal;break;case SmartErrorSeverity.Error:a=console.error,n=SeverityLevel.Error;break;case SmartErrorSeverity.Warning:a=console.warn,n=SeverityLevel.Warning;break;case SmartErrorSeverity.Info:a=console.info,n=SeverityLevel.Info;break;case SmartErrorSeverity.Debug:a=console.debug,n=SeverityLevel.Debug}if(_.isString(s)){const t=s.match(SmartDbTimestampRegexp),e=t&&s.match(SmartDbDateRegexp);g=t?t[1]:e?e[1]+".000":toSmartDbTimestamp(new Date)}else g=_.isDate(s)?toSmartDbTimestamp(s):_.isNumber(s)?toSmartDbTimestamp(new Date(s)):toSmartDbTimestamp(new Date);if(_.isObjectLike(o))if(o instanceof Error)i||(i=o),o=o.message;else try{o=JSON.stringify(o)}catch(t){o=o.toString()}else"boolean"==typeof o&&(o=o?"<true>":"<false>");if(i){if(i instanceof Error)i=i.stack;else if(_.isObject(i))try{i=JSON.stringify(i)}catch(t){i=i.toString(),this.db&&this.dbLogLevel>=n&&console.error("unable to stringify log data",i)}else i.toString?i=i.toString():(i=null,this.db&&this.dbLogLevel>=n&&console.error("unable to store log data",i));i&&(o+=` (${i})`)}if(this.consoleLogLevel>=n){const s=t.substring(0,1).toUpperCase();if(t==SmartErrorLocation.Database&&this.db&&a(`${r}-${s}-${g}: last statement:`,this.db.getLastBuildData()),a(`${r}-${s}-${g}: ${o}`),this.dbLogging)try{t==SmartErrorLocation.Database&&(i||(i=JSON.stringify(this.db.getLastBuildData()))),this.db.supportSyncCalls?(this.db.insertSync(SmartDbLogModel,{severity:r,type:t,location:e,info:o||"<empty>",data:i,user:this.userId,timestamp:new Date(g)}),this.isLogging=!1,this.nextStackEntry()):this.db.insert(SmartDbLogModel,{severity:r,type:t,location:e,info:o||"<empty>",data:i,user:this.userId,timestamp:new Date(g)}).then((()=>{this.db.commit().then((()=>{this.isLogging=!1,this.nextStackEntry()})).catch((t=>{console.error(`F-B-${g}: unable to commit log transaction`,t,t.code,t.name,t.message),this.isLogging=!1,this.nextStackEntry()}))})).catch((t=>{console.error(`F-B-${g}: unable to write the log statement below to database`,t,t.code,t.name,t.message),this.isLogging=!1,this.nextStackEntry()}))}catch(t){console.error(`F-B-${g}: unable to write the log statement below to database`,t,t.code,t.name,t.message);try{a(`F-B-${g}: last statement:`,this.db.getLastBuildData())}catch{a(`F-B-${g}: last statement not available`)}this.isLogging=!1,this.nextStackEntry()}else this.isLogging=!1,this.nextStackEntry()}else this.isLogging=!1,this.nextStackEntry()}}catch(t){this.isLogging=!1,console.error("fatal logging error",t)}}nextStackEntry(){if(this.logFifo.length>0){const t=this.logFifo.shift();this.writeLog(t.type,t.location,t.severity,t.message,t.data,t.timestamp)}}}export const smartDbLog=new SmartDbLog;