axiodb 1.0.7 → 1.0.8
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/.idea/AxioDB.iml +12 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/lib/Operation/Indexation.operation.d.ts +2 -2
- package/lib/Operation/Indexation.operation.js +2 -3
- package/lib/Operation/Indexation.operation.js.map +1 -1
- package/lib/config/DB.d.ts +1 -5
- package/lib/config/DB.js +4 -9
- package/lib/config/DB.js.map +1 -1
- package/package.json +1 -1
package/.idea/AxioDB.iml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
9
|
+
<orderEntry type="inheritedJdk" />
|
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|
package/.idea/vcs.xml
ADDED
|
@@ -4,12 +4,12 @@ export default class AxioDB {
|
|
|
4
4
|
private isEncrypted;
|
|
5
5
|
private readonly clusterName;
|
|
6
6
|
private readonly currentPATH;
|
|
7
|
-
constructor(Schema
|
|
7
|
+
constructor(Schema?: object | any, isEncrypted?: boolean, ClusterName?: string);
|
|
8
8
|
getSchema(): object | any;
|
|
9
9
|
EncryptionStatus(): boolean;
|
|
10
10
|
getEncryptionKey(): string;
|
|
11
11
|
setEncryptionKey(key: string): void;
|
|
12
12
|
setEncryptionStatus(status: boolean): void;
|
|
13
13
|
getConfiguration(): object | any;
|
|
14
|
-
|
|
14
|
+
CreateTreeRoot(): Promise<void>;
|
|
15
15
|
}
|
|
@@ -24,7 +24,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
var _AxioDB_encryptionKey;
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
const
|
|
27
|
+
const FolderManager_1 = __importDefault(require("../Storage/FolderManager"));
|
|
28
28
|
const Keys_1 = require("../config/Keys/Keys");
|
|
29
29
|
const path_1 = __importDefault(require("path"));
|
|
30
30
|
class AxioDB {
|
|
@@ -35,7 +35,6 @@ class AxioDB {
|
|
|
35
35
|
__classPrivateFieldSet(this, _AxioDB_encryptionKey, Keys_1.General.DBMS_Name, "f");
|
|
36
36
|
this.clusterName = ClusterName;
|
|
37
37
|
this.currentPATH = path_1.default.resolve(".");
|
|
38
|
-
this.CreateTreeRoot();
|
|
39
38
|
}
|
|
40
39
|
getSchema() {
|
|
41
40
|
return this.Schema;
|
|
@@ -63,7 +62,7 @@ class AxioDB {
|
|
|
63
62
|
}
|
|
64
63
|
CreateTreeRoot() {
|
|
65
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
yield new
|
|
65
|
+
yield new FolderManager_1.default().CreateDirectory(`${this.currentPATH}/${this.clusterName}`);
|
|
67
66
|
});
|
|
68
67
|
}
|
|
69
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Indexation.operation.js","sourceRoot":"","sources":["../../source/Operation/Indexation.operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,
|
|
1
|
+
{"version":3,"file":"Indexation.operation.js","sourceRoot":"","sources":["../../source/Operation/Indexation.operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,6EAAqD;AACrD,8CAA8C;AAC9C,gDAAwB;AAExB,MAAqB,MAAM;IAQzB,YACE,MAAqB,EACrB,WAAW,GAAG,KAAK,EACnB,cAAsB,cAAO,CAAC,SAAS;QAPzC,wCAAuB;QASrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,uBAAA,IAAI,yBAAkB,cAAO,CAAC,SAAS,MAAA,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAGM,SAAS;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAEM,gBAAgB;QACrB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAEM,gBAAgB;QACrB,OAAO,uBAAA,IAAI,6BAAe,CAAC;IAC7B,CAAC;IAEM,gBAAgB,CAAC,GAAW;QACjC,uBAAA,IAAI,yBAAkB,GAAG,MAAA,CAAC;IAC5B,CAAC;IAEM,mBAAmB,CAAC,MAAe;QACxC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC5B,CAAC;IAEM,gBAAgB;QACrB,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE;YACxB,UAAU,EAAE;gBACV,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE;gBAC/B,GAAG,EAAE,IAAI,CAAC,gBAAgB,EAAE;aAC7B;SACF,CAAC;IACJ,CAAC;IAWY,cAAc;;YACzB,MAAM,IAAI,uBAAa,EAAE,CAAC,eAAe,CACvC,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,EAAE,CAC1C,CAAC;QACJ,CAAC;KAAA;CACF;;kBAjEoB,MAAM"}
|
package/lib/config/DB.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { SchemaTypes } from "../Models/DataTypes.models";
|
|
2
2
|
import schemaValidate from "../Models/validator.models";
|
|
3
|
-
import FileManager from "../Storage/FileManager";
|
|
4
|
-
import FolderManager from "../Storage/FolderManager";
|
|
5
3
|
import Configure from "../Operation/Indexation.operation";
|
|
6
|
-
export { SchemaTypes, schemaValidate,
|
|
4
|
+
export { SchemaTypes, schemaValidate, Configure };
|
|
7
5
|
declare const _default: {
|
|
8
6
|
SchemaTypes: {
|
|
9
7
|
string: <TSchema = string>() => import("joi").StringSchema<TSchema>;
|
|
@@ -31,8 +29,6 @@ declare const _default: {
|
|
|
31
29
|
valid: (values: any[]) => import("joi").Schema<any>;
|
|
32
30
|
};
|
|
33
31
|
schemaValidate: typeof schemaValidate;
|
|
34
|
-
FileManager: typeof FileManager;
|
|
35
32
|
Configure: typeof Configure;
|
|
36
|
-
FolderManager: typeof FolderManager;
|
|
37
33
|
};
|
|
38
34
|
export default _default;
|
package/lib/config/DB.js
CHANGED
|
@@ -3,24 +3,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Configure = exports.
|
|
6
|
+
exports.Configure = exports.schemaValidate = exports.SchemaTypes = void 0;
|
|
7
7
|
const DataTypes_models_1 = require("../Models/DataTypes.models");
|
|
8
8
|
Object.defineProperty(exports, "SchemaTypes", { enumerable: true, get: function () { return DataTypes_models_1.SchemaTypes; } });
|
|
9
9
|
const validator_models_1 = __importDefault(require("../Models/validator.models"));
|
|
10
10
|
exports.schemaValidate = validator_models_1.default;
|
|
11
|
-
const FileManager_1 = __importDefault(require("../Storage/FileManager"));
|
|
12
|
-
exports.FileManager = FileManager_1.default;
|
|
13
|
-
const FolderManager_1 = __importDefault(require("../Storage/FolderManager"));
|
|
14
|
-
exports.FolderManager = FolderManager_1.default;
|
|
15
11
|
const Indexation_operation_1 = __importDefault(require("../Operation/Indexation.operation"));
|
|
16
12
|
exports.Configure = Indexation_operation_1.default;
|
|
17
13
|
const Fastify_1 = __importDefault(require("../Web/Fastify"));
|
|
18
|
-
(0, Fastify_1.default)();
|
|
14
|
+
(0, Fastify_1.default)().then((r) => console.log(r));
|
|
15
|
+
new Indexation_operation_1.default().CreateTreeRoot().then((r) => console.log(r));
|
|
19
16
|
exports.default = {
|
|
20
17
|
SchemaTypes: DataTypes_models_1.SchemaTypes,
|
|
21
18
|
schemaValidate: validator_models_1.default,
|
|
22
|
-
|
|
23
|
-
Configure: Indexation_operation_1.default,
|
|
24
|
-
FolderManager: FolderManager_1.default,
|
|
19
|
+
Configure: Indexation_operation_1.default
|
|
25
20
|
};
|
|
26
21
|
//# sourceMappingURL=DB.js.map
|
package/lib/config/DB.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DB.js","sourceRoot":"","sources":["../../source/config/DB.ts"],"names":[],"mappings":";;;;;;AACA,iEAAyD;AAWhD,4FAXA,8BAAW,OAWA;AAVpB,kFAAwD;AAUlC,yBAVf,0BAAc,CAUe;AATpC,
|
|
1
|
+
{"version":3,"file":"DB.js","sourceRoot":"","sources":["../../source/config/DB.ts"],"names":[],"mappings":";;;;;;AACA,iEAAyD;AAWhD,4FAXA,8BAAW,OAWA;AAVpB,kFAAwD;AAUlC,yBAVf,0BAAc,CAUe;AATpC,6FAA0D;AASpB,oBAT/B,8BAAS,CAS+B;AAP/C,6DAAuC;AAGvC,IAAA,iBAAS,GAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACxC,IAAI,8BAAS,EAAE,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAI,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAM/D,kBAAe;IACb,WAAW,EAAX,8BAAW;IACX,cAAc,EAAd,0BAAc;IACd,SAAS,EAAT,8BAAS;CACV,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiodb",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "A fast, lightweight, and scalable open-source DBMS for modern apps. Supports JSON-based data storage, simple APIs, and secure data management. Ideal for projects needing efficient and flexible database solutions.",
|
|
5
5
|
"main": "./lib/config/DB.js",
|
|
6
6
|
"types": "./lib/config/DB.d.ts",
|