@orqenix-pro/polyglot-backend 0.5.0-phase-5
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/LICENSE +25 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +12 -0
- package/package.json +29 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
Parameters
|
|
4
|
+
|
|
5
|
+
Licensor: Orqenix (Milo Nguyen)
|
|
6
|
+
Licensed Work: Orqenix-Pro v0.5.0-phase-5
|
|
7
|
+
The Licensed Work is (c) 2026 Orqenix Contributors.
|
|
8
|
+
|
|
9
|
+
Additional Use Grant: You may make use of the Licensed Work, provided that
|
|
10
|
+
you may not use the Licensed Work for a Commercial
|
|
11
|
+
Knowledge Mesh Service offered by you to third parties
|
|
12
|
+
that competes with Orqenix Cloud.
|
|
13
|
+
|
|
14
|
+
A "Commercial Knowledge Mesh Service" is a commercial
|
|
15
|
+
offering that allows third parties (other than your
|
|
16
|
+
employees and contractors) to access the functionality
|
|
17
|
+
of the Licensed Work so that such third parties directly
|
|
18
|
+
benefit from the Licensed Work as a service.
|
|
19
|
+
|
|
20
|
+
Change Date: Four years from the date the Licensed Work is published.
|
|
21
|
+
|
|
22
|
+
Change License: Apache License, Version 2.0
|
|
23
|
+
|
|
24
|
+
For information about alternative licensing arrangements for the Licensed Work,
|
|
25
|
+
please visit https://orqenix.dev/licensing
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const BACKEND_KINDS: readonly ["sqlite", "lmdb", "kuzu", "lancedb"];
|
|
2
|
+
export type BackendKind = (typeof BACKEND_KINDS)[number];
|
|
3
|
+
export interface BackendInfo {
|
|
4
|
+
kind: BackendKind;
|
|
5
|
+
active: boolean;
|
|
6
|
+
ready: boolean;
|
|
7
|
+
lastError?: string;
|
|
8
|
+
version?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface BackendManager {
|
|
11
|
+
status(): Promise<BackendInfo[]>;
|
|
12
|
+
readinessProbe(kind: BackendKind): Promise<boolean>;
|
|
13
|
+
switch(kind: BackendKind): Promise<BackendInfo>;
|
|
14
|
+
}
|
|
15
|
+
export declare class PolyglotBackendManager implements BackendManager {
|
|
16
|
+
status(): Promise<BackendInfo[]>;
|
|
17
|
+
readinessProbe(_kind: BackendKind): Promise<boolean>;
|
|
18
|
+
switch(_kind: BackendKind): Promise<BackendInfo>;
|
|
19
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const BACKEND_KINDS = ['sqlite', 'lmdb', 'kuzu', 'lancedb'];
|
|
2
|
+
export class PolyglotBackendManager {
|
|
3
|
+
async status() {
|
|
4
|
+
return [];
|
|
5
|
+
}
|
|
6
|
+
async readinessProbe(_kind) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
async switch(_kind) {
|
|
10
|
+
throw new Error('not implemented');
|
|
11
|
+
}
|
|
12
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@orqenix-pro/polyglot-backend",
|
|
3
|
+
"version": "0.5.0-phase-5",
|
|
4
|
+
"description": "Polyglot backend manager for Orqenix-Pro (sqlite, lmdb, kuzu, lancedb)",
|
|
5
|
+
"license": "BUSL-1.1",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"typescript": "^5.5.0",
|
|
23
|
+
"vitest": "^1.6.0"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc -p tsconfig.json",
|
|
27
|
+
"test": "vitest run"
|
|
28
|
+
}
|
|
29
|
+
}
|