@quereus/quereus 0.6.3 → 0.6.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 +1 -1
- package/dist/src/index.d.ts +4 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/util/plugin-helper.d.ts +45 -0
- package/dist/src/util/plugin-helper.d.ts.map +1 -0
- package/dist/src/util/plugin-helper.js +85 -0
- package/dist/src/util/plugin-helper.js.map +1 -0
- package/package.json +4 -2
- package/src/index.ts +10 -16
- package/src/util/plugin-helper.ts +110 -0
- package/dist/src/config/loader.d.ts +0 -41
- package/dist/src/config/loader.d.ts.map +0 -1
- package/dist/src/config/loader.js +0 -102
- package/dist/src/config/loader.js.map +0 -1
- package/dist/src/planner/nodes/physical-access-nodes.d.ts +0 -83
- package/dist/src/planner/nodes/physical-access-nodes.d.ts.map +0 -1
- package/dist/src/planner/nodes/physical-access-nodes.js +0 -226
- package/dist/src/planner/nodes/physical-access-nodes.js.map +0 -1
- package/dist/src/planner/nodes/scan.d.ts +0 -27
- package/dist/src/planner/nodes/scan.d.ts.map +0 -1
- package/dist/src/planner/nodes/scan.js +0 -78
- package/dist/src/planner/nodes/scan.js.map +0 -1
- package/dist/src/planner/nodes/update-executor-node.d.ts +0 -24
- package/dist/src/planner/nodes/update-executor-node.d.ts.map +0 -1
- package/dist/src/planner/nodes/update-executor-node.js +0 -57
- package/dist/src/planner/nodes/update-executor-node.js.map +0 -1
- package/dist/src/planner/physical-utils.d.ts +0 -36
- package/dist/src/planner/physical-utils.d.ts.map +0 -1
- package/dist/src/planner/physical-utils.js +0 -122
- package/dist/src/planner/physical-utils.js.map +0 -1
- package/dist/src/planner/rules/physical/rule-filter-optimization.d.ts +0 -11
- package/dist/src/planner/rules/physical/rule-filter-optimization.d.ts.map +0 -1
- package/dist/src/planner/rules/physical/rule-filter-optimization.js +0 -49
- package/dist/src/planner/rules/physical/rule-filter-optimization.js.map +0 -1
- package/dist/src/planner/rules/physical/rule-mark-physical.d.ts +0 -11
- package/dist/src/planner/rules/physical/rule-mark-physical.d.ts.map +0 -1
- package/dist/src/planner/rules/physical/rule-mark-physical.js +0 -29
- package/dist/src/planner/rules/physical/rule-mark-physical.js.map +0 -1
- package/dist/src/planner/rules/physical/rule-project-optimization.d.ts +0 -11
- package/dist/src/planner/rules/physical/rule-project-optimization.d.ts.map +0 -1
- package/dist/src/planner/rules/physical/rule-project-optimization.js +0 -44
- package/dist/src/planner/rules/physical/rule-project-optimization.js.map +0 -1
- package/dist/src/planner/rules/physical/rule-sort-optimization.d.ts +0 -11
- package/dist/src/planner/rules/physical/rule-sort-optimization.d.ts.map +0 -1
- package/dist/src/planner/rules/physical/rule-sort-optimization.js +0 -53
- package/dist/src/planner/rules/physical/rule-sort-optimization.js.map +0 -1
- package/dist/src/planner/rules/rewrite/rule-constant-folding.d.ts +0 -11
- package/dist/src/planner/rules/rewrite/rule-constant-folding.d.ts.map +0 -1
- package/dist/src/planner/rules/rewrite/rule-constant-folding.js +0 -59
- package/dist/src/planner/rules/rewrite/rule-constant-folding.js.map +0 -1
- package/dist/src/planner/util/deferred-constraint.d.ts +0 -14
- package/dist/src/planner/util/deferred-constraint.d.ts.map +0 -1
- package/dist/src/planner/util/deferred-constraint.js +0 -85
- package/dist/src/planner/util/deferred-constraint.js.map +0 -1
- package/dist/src/runtime/emit/table-reference.d.ts +0 -5
- package/dist/src/runtime/emit/table-reference.d.ts.map +0 -1
- package/dist/src/runtime/emit/table-reference.js +0 -67
- package/dist/src/runtime/emit/table-reference.js.map +0 -1
- package/dist/src/runtime/emit/update-executor.d.ts +0 -5
- package/dist/src/runtime/emit/update-executor.d.ts.map +0 -1
- package/dist/src/runtime/emit/update-executor.js +0 -54
- package/dist/src/runtime/emit/update-executor.js.map +0 -1
- package/dist/src/util/plugin-loader.d.ts +0 -52
- package/dist/src/util/plugin-loader.d.ts.map +0 -1
- package/dist/src/util/plugin-loader.js +0 -307
- package/dist/src/util/plugin-loader.js.map +0 -1
- package/src/config/loader.ts +0 -140
- package/src/util/plugin-loader.ts +0 -387
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Quereus is a feature-complete SQL query processor specifically designed for effi
|
|
|
11
11
|
* **Modern Type System**: Extensible logical/physical type separation with built-in temporal types (DATE, TIME, DATETIME), native JSON type with deep equality comparison, and plugin support for custom types. See [Type System Documentation](docs/types.md).
|
|
12
12
|
* **TypeScript & Modern JS**: Leverage TypeScript's type system and modern JavaScript features and idioms.
|
|
13
13
|
* **Async VTab Operations**: Virtual table data operations (reads/writes) are asynchronous. Cursors are implemented as async iterables.
|
|
14
|
-
* **Cross-Platform**: Target diverse Javascript runtime environments, including Node.js, browser, and React Native.
|
|
14
|
+
* **Cross-Platform**: Target diverse Javascript runtime environments, including Node.js, browser, and React Native. Plugin loading (via `@quereus/plugin-loader`) uses dynamic `import()` and is not compatible with React Native; use static imports for RN.
|
|
15
15
|
* **Minimal Dependencies**: Avoid heavy external dependencies where possible.
|
|
16
16
|
* **SQL Compatibility**: Comprehensive support for modern SQL features including joins, window functions, subqueries, CTEs, constraints, views, and advanced DML/DDL operations.
|
|
17
17
|
* **Key-Based Addressing**: All tables are addressed by their defined Primary Key. The concept of a separate, implicit `rowid` for addressing rows is not used.
|
package/dist/src/index.d.ts
CHANGED
|
@@ -35,17 +35,15 @@ export { ParseError } from './parser/parser.js';
|
|
|
35
35
|
export { SchemaManager } from './schema/manager.js';
|
|
36
36
|
export type { TableSchema, IndexSchema as TableIndexSchema } from './schema/table.js';
|
|
37
37
|
export type { ColumnSchema } from './schema/column.js';
|
|
38
|
-
export type { FunctionSchema } from './schema/function.js';
|
|
39
38
|
export { isAsyncIterable, asyncIterableToArray } from './runtime/utils.js';
|
|
40
39
|
export { createScalarFunction, createTableValuedFunction, createAggregateFunction } from './func/registration.js';
|
|
41
|
-
export type { ScalarFunc, TableValuedFunc, AggregateReducer, AggregateFinalizer } from './schema/function.js';
|
|
40
|
+
export type { ScalarFunc, TableValuedFunc, AggregateReducer, AggregateFinalizer, FunctionSchema } from './schema/function.js';
|
|
42
41
|
export { Latches } from './util/latches.js';
|
|
42
|
+
export { registerPlugin } from './util/plugin-helper.js';
|
|
43
|
+
export type { PluginFunction } from './util/plugin-helper.js';
|
|
43
44
|
import './runtime/register.js';
|
|
44
|
-
export { dynamicLoadModule, validatePluginUrl, loadPlugin } from './util/plugin-loader.js';
|
|
45
|
-
export type { PluginManifest, PluginRecord, PluginSetting, VTablePluginInfo, FunctionPluginInfo, CollationPluginInfo, TypePluginInfo, PluginRegistrations } from './vtab/manifest.js';
|
|
46
|
-
export { interpolateEnvVars, interpolateConfigEnvVars, loadPluginsFromConfig, validateConfig } from './config/loader.js';
|
|
47
|
-
export type { QuoombConfig, PluginConfig } from './config/loader.js';
|
|
48
45
|
export type { VirtualTableModule } from './vtab/module.js';
|
|
46
|
+
export type { PluginManifest, PluginRecord, PluginSetting, VTablePluginInfo, FunctionPluginInfo, CollationPluginInfo, TypePluginInfo, PluginRegistrations } from './vtab/manifest.js';
|
|
49
47
|
export { serializePlanTree, formatPlanTree, formatPlanSummary, serializePlanTreeWithOptions } from './planner/debug.js';
|
|
50
48
|
export type { PlanDisplayOptions } from './planner/debug.js';
|
|
51
49
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC5D,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,mBAAm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MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AACxH,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -35,12 +35,10 @@ export { isAsyncIterable, asyncIterableToArray } from './runtime/utils.js';
|
|
|
35
35
|
export { createScalarFunction, createTableValuedFunction, createAggregateFunction } from './func/registration.js';
|
|
36
36
|
// Utility functions
|
|
37
37
|
export { Latches } from './util/latches.js';
|
|
38
|
+
// Plugin helper for static loading (React Native, etc.)
|
|
39
|
+
export { registerPlugin } from './util/plugin-helper.js';
|
|
38
40
|
// Initialize runtime emitters (this ensures they are registered)
|
|
39
41
|
import './runtime/register.js';
|
|
40
|
-
// Re-export plugin system
|
|
41
|
-
export { dynamicLoadModule, validatePluginUrl, loadPlugin } from './util/plugin-loader.js';
|
|
42
|
-
// Re-export config system
|
|
43
|
-
export { interpolateEnvVars, interpolateConfigEnvVars, loadPluginsFromConfig, validateConfig } from './config/loader.js';
|
|
44
42
|
// Debug and development utilities
|
|
45
43
|
export { serializePlanTree, formatPlanTree, formatPlanSummary, serializePlanTreeWithOptions } from './planner/debug.js';
|
|
46
44
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,8BAA8B;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,kCAAkC;AAClC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,u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gBAAgB,EAChB,SAAS,EACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,MAAM,uBAAuB,CAAC;AAE/B,0BAA0B;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,oBAAoB;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIpD,oBAAoB;AACpB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE3E,kCAAkC;AAClC,OAAO,EACN,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,MAAM,wBAAwB,CAAC;AAUhC,oBAAoB;AACpB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,wDAAwD;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD,iEAAiE;AACjE,OAAO,uBAAuB,CAAC;AAiB/B,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin registration helper for static plugin loading
|
|
3
|
+
*
|
|
4
|
+
* This module provides utilities for registering plugins without dynamic imports,
|
|
5
|
+
* which is useful for React Native and other environments where dynamic imports
|
|
6
|
+
* are not supported.
|
|
7
|
+
*/
|
|
8
|
+
import type { Database } from '../core/database.js';
|
|
9
|
+
import type { PluginRegistrations } from '../vtab/manifest.js';
|
|
10
|
+
import type { SqlValue } from '../common/types.js';
|
|
11
|
+
/**
|
|
12
|
+
* Plugin function type - what a plugin exports as its default export
|
|
13
|
+
*/
|
|
14
|
+
export type PluginFunction = (db: Database, config?: Record<string, SqlValue>) => Promise<PluginRegistrations> | PluginRegistrations;
|
|
15
|
+
/**
|
|
16
|
+
* Register a plugin's components with the database.
|
|
17
|
+
*
|
|
18
|
+
* This is a helper function for static plugin loading that handles calling
|
|
19
|
+
* the plugin function and registering all returned components (vtables,
|
|
20
|
+
* functions, collations, types) with the database.
|
|
21
|
+
*
|
|
22
|
+
* @param db Database instance to register with
|
|
23
|
+
* @param plugin Plugin function (the default export from a plugin module)
|
|
24
|
+
* @param config Optional configuration object to pass to the plugin
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import { Database } from '@quereus/quereus';
|
|
29
|
+
* import { registerPlugin } from '@quereus/quereus';
|
|
30
|
+
* import myPlugin from './plugins/my-plugin';
|
|
31
|
+
*
|
|
32
|
+
* const db = new Database();
|
|
33
|
+
* await registerPlugin(db, myPlugin, { apiKey: 'secret' });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* // Register multiple plugins
|
|
39
|
+
* await registerPlugin(db, stringFunctions);
|
|
40
|
+
* await registerPlugin(db, customCollations);
|
|
41
|
+
* await registerPlugin(db, jsonTable, { cacheSize: 100 });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function registerPlugin(db: Database, plugin: PluginFunction, config?: Record<string, SqlValue>): Promise<void>;
|
|
45
|
+
//# sourceMappingURL=plugin-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-helper.d.ts","sourceRoot":"","sources":["../../../src/util/plugin-helper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAC5B,EAAE,EAAE,QAAQ,EACZ,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,KAC7B,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,cAAc,CACnC,EAAE,EAAE,QAAQ,EACZ,MAAM,EAAE,cAAc,EACtB,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAM,GACnC,OAAO,CAAC,IAAI,CAAC,CAuDf"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin registration helper for static plugin loading
|
|
3
|
+
*
|
|
4
|
+
* This module provides utilities for registering plugins without dynamic imports,
|
|
5
|
+
* which is useful for React Native and other environments where dynamic imports
|
|
6
|
+
* are not supported.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Register a plugin's components with the database.
|
|
10
|
+
*
|
|
11
|
+
* This is a helper function for static plugin loading that handles calling
|
|
12
|
+
* the plugin function and registering all returned components (vtables,
|
|
13
|
+
* functions, collations, types) with the database.
|
|
14
|
+
*
|
|
15
|
+
* @param db Database instance to register with
|
|
16
|
+
* @param plugin Plugin function (the default export from a plugin module)
|
|
17
|
+
* @param config Optional configuration object to pass to the plugin
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import { Database } from '@quereus/quereus';
|
|
22
|
+
* import { registerPlugin } from '@quereus/quereus';
|
|
23
|
+
* import myPlugin from './plugins/my-plugin';
|
|
24
|
+
*
|
|
25
|
+
* const db = new Database();
|
|
26
|
+
* await registerPlugin(db, myPlugin, { apiKey: 'secret' });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* // Register multiple plugins
|
|
32
|
+
* await registerPlugin(db, stringFunctions);
|
|
33
|
+
* await registerPlugin(db, customCollations);
|
|
34
|
+
* await registerPlugin(db, jsonTable, { cacheSize: 100 });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export async function registerPlugin(db, plugin, config = {}) {
|
|
38
|
+
// Call the plugin function to get registrations
|
|
39
|
+
const registrations = await plugin(db, config);
|
|
40
|
+
// Register virtual table modules
|
|
41
|
+
if (registrations.vtables) {
|
|
42
|
+
for (const vtable of registrations.vtables) {
|
|
43
|
+
try {
|
|
44
|
+
db.registerVtabModule(vtable.name, vtable.module, vtable.auxData);
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
throw new Error(`Failed to register vtable module '${vtable.name}': ${error instanceof Error ? error.message : String(error)}`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// Register functions
|
|
52
|
+
if (registrations.functions) {
|
|
53
|
+
for (const func of registrations.functions) {
|
|
54
|
+
try {
|
|
55
|
+
db.registerFunction(func.schema);
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
throw new Error(`Failed to register function '${func.schema.name}/${func.schema.numArgs}': ${error instanceof Error ? error.message : String(error)}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// Register collations
|
|
63
|
+
if (registrations.collations) {
|
|
64
|
+
for (const collation of registrations.collations) {
|
|
65
|
+
try {
|
|
66
|
+
db.registerCollation(collation.name, collation.func);
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
throw new Error(`Failed to register collation '${collation.name}': ${error instanceof Error ? error.message : String(error)}`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// Register types
|
|
74
|
+
if (registrations.types) {
|
|
75
|
+
for (const type of registrations.types) {
|
|
76
|
+
try {
|
|
77
|
+
db.registerType(type.name, type.definition);
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
throw new Error(`Failed to register type '${type.name}': ${error instanceof Error ? error.message : String(error)}`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=plugin-helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-helper.js","sourceRoot":"","sources":["../../../src/util/plugin-helper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAcH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CACnC,EAAY,EACZ,MAAsB,EACtB,SAAmC,EAAE;IAErC,gDAAgD;IAChD,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IAE/C,iCAAiC;IACjC,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC;QAC3B,KAAK,MAAM,MAAM,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC;YAC5C,IAAI,CAAC;gBACJ,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;YACnE,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,MAAM,IAAI,KAAK,CACd,qCAAqC,MAAM,CAAC,IAAI,MAAM,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAC9G,CAAC;YACH,CAAC;QACF,CAAC;IACF,CAAC;IAED,qBAAqB;IACrB,IAAI,aAAa,CAAC,SAAS,EAAE,CAAC;QAC7B,KAAK,MAAM,IAAI,IAAI,aAAa,CAAC,SAAS,EAAE,CAAC;YAC5C,IAAI,CAAC;gBACJ,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CA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,CAAC;IACF,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quereus/quereus",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Federated SQL query processor",
|
|
6
6
|
"publisher": "Got Choices Foundation",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
|
-
"clean": "
|
|
28
|
+
"clean": "rimraf dist",
|
|
29
29
|
"doc": "npx typedoc -out doc src",
|
|
30
30
|
"build": "tsc",
|
|
31
31
|
"lint": "eslint src/**/*.ts test/**/*.ts",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"typecheck": "tsc --noEmit"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
+
"@quereus/plugin-loader": "*",
|
|
40
41
|
"@types/chai": "^5.2.2",
|
|
41
42
|
"@types/debug": "^4.1.12",
|
|
42
43
|
"@types/mocha": "^10.0.10",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"eslint-plugin-import": "^2.31.0",
|
|
49
50
|
"fast-check": "^4.1.1",
|
|
50
51
|
"mocha": "^11.5.0",
|
|
52
|
+
"rimraf": "^6.1.2",
|
|
51
53
|
"ts-node": "^10.9.2",
|
|
52
54
|
"tsc-alias": "^1.8.16",
|
|
53
55
|
"typedoc": "^0.28.5",
|
package/src/index.ts
CHANGED
|
@@ -91,7 +91,6 @@ export { ParseError } from './parser/parser.js';
|
|
|
91
91
|
export { SchemaManager } from './schema/manager.js';
|
|
92
92
|
export type { TableSchema, IndexSchema as TableIndexSchema } from './schema/table.js';
|
|
93
93
|
export type { ColumnSchema } from './schema/column.js';
|
|
94
|
-
export type { FunctionSchema } from './schema/function.js';
|
|
95
94
|
|
|
96
95
|
// Runtime utilities
|
|
97
96
|
export { isAsyncIterable, asyncIterableToArray } from './runtime/utils.js';
|
|
@@ -107,17 +106,24 @@ export type {
|
|
|
107
106
|
ScalarFunc,
|
|
108
107
|
TableValuedFunc,
|
|
109
108
|
AggregateReducer,
|
|
110
|
-
AggregateFinalizer
|
|
109
|
+
AggregateFinalizer,
|
|
110
|
+
FunctionSchema
|
|
111
111
|
} from './schema/function.js';
|
|
112
112
|
|
|
113
113
|
// Utility functions
|
|
114
114
|
export { Latches } from './util/latches.js';
|
|
115
115
|
|
|
116
|
+
// Plugin helper for static loading (React Native, etc.)
|
|
117
|
+
export { registerPlugin } from './util/plugin-helper.js';
|
|
118
|
+
export type { PluginFunction } from './util/plugin-helper.js';
|
|
119
|
+
|
|
116
120
|
// Initialize runtime emitters (this ensures they are registered)
|
|
117
121
|
import './runtime/register.js';
|
|
118
122
|
|
|
119
|
-
// Re-export
|
|
120
|
-
export {
|
|
123
|
+
// Re-export virtual table framework
|
|
124
|
+
export type { VirtualTableModule } from './vtab/module.js';
|
|
125
|
+
|
|
126
|
+
// Re-export plugin manifest types (for plugin authors, but not the loader)
|
|
121
127
|
export type {
|
|
122
128
|
PluginManifest,
|
|
123
129
|
PluginRecord,
|
|
@@ -129,18 +135,6 @@ export type {
|
|
|
129
135
|
PluginRegistrations
|
|
130
136
|
} from './vtab/manifest.js';
|
|
131
137
|
|
|
132
|
-
// Re-export config system
|
|
133
|
-
export {
|
|
134
|
-
interpolateEnvVars,
|
|
135
|
-
interpolateConfigEnvVars,
|
|
136
|
-
loadPluginsFromConfig,
|
|
137
|
-
validateConfig
|
|
138
|
-
} from './config/loader.js';
|
|
139
|
-
export type { QuoombConfig, PluginConfig } from './config/loader.js';
|
|
140
|
-
|
|
141
|
-
// Re-export virtual table framework
|
|
142
|
-
export type { VirtualTableModule } from './vtab/module.js';
|
|
143
|
-
|
|
144
138
|
// Debug and development utilities
|
|
145
139
|
export { serializePlanTree, formatPlanTree, formatPlanSummary, serializePlanTreeWithOptions } from './planner/debug.js';
|
|
146
140
|
export type { PlanDisplayOptions } from './planner/debug.js';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin registration helper for static plugin loading
|
|
3
|
+
*
|
|
4
|
+
* This module provides utilities for registering plugins without dynamic imports,
|
|
5
|
+
* which is useful for React Native and other environments where dynamic imports
|
|
6
|
+
* are not supported.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { Database } from '../core/database.js';
|
|
10
|
+
import type { PluginRegistrations } from '../vtab/manifest.js';
|
|
11
|
+
import type { SqlValue } from '../common/types.js';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Plugin function type - what a plugin exports as its default export
|
|
15
|
+
*/
|
|
16
|
+
export type PluginFunction = (
|
|
17
|
+
db: Database,
|
|
18
|
+
config?: Record<string, SqlValue>
|
|
19
|
+
) => Promise<PluginRegistrations> | PluginRegistrations;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Register a plugin's components with the database.
|
|
23
|
+
*
|
|
24
|
+
* This is a helper function for static plugin loading that handles calling
|
|
25
|
+
* the plugin function and registering all returned components (vtables,
|
|
26
|
+
* functions, collations, types) with the database.
|
|
27
|
+
*
|
|
28
|
+
* @param db Database instance to register with
|
|
29
|
+
* @param plugin Plugin function (the default export from a plugin module)
|
|
30
|
+
* @param config Optional configuration object to pass to the plugin
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import { Database } from '@quereus/quereus';
|
|
35
|
+
* import { registerPlugin } from '@quereus/quereus';
|
|
36
|
+
* import myPlugin from './plugins/my-plugin';
|
|
37
|
+
*
|
|
38
|
+
* const db = new Database();
|
|
39
|
+
* await registerPlugin(db, myPlugin, { apiKey: 'secret' });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```typescript
|
|
44
|
+
* // Register multiple plugins
|
|
45
|
+
* await registerPlugin(db, stringFunctions);
|
|
46
|
+
* await registerPlugin(db, customCollations);
|
|
47
|
+
* await registerPlugin(db, jsonTable, { cacheSize: 100 });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export async function registerPlugin(
|
|
51
|
+
db: Database,
|
|
52
|
+
plugin: PluginFunction,
|
|
53
|
+
config: Record<string, SqlValue> = {}
|
|
54
|
+
): Promise<void> {
|
|
55
|
+
// Call the plugin function to get registrations
|
|
56
|
+
const registrations = await plugin(db, config);
|
|
57
|
+
|
|
58
|
+
// Register virtual table modules
|
|
59
|
+
if (registrations.vtables) {
|
|
60
|
+
for (const vtable of registrations.vtables) {
|
|
61
|
+
try {
|
|
62
|
+
db.registerVtabModule(vtable.name, vtable.module, vtable.auxData);
|
|
63
|
+
} catch (error) {
|
|
64
|
+
throw new Error(
|
|
65
|
+
`Failed to register vtable module '${vtable.name}': ${error instanceof Error ? error.message : String(error)}`
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Register functions
|
|
72
|
+
if (registrations.functions) {
|
|
73
|
+
for (const func of registrations.functions) {
|
|
74
|
+
try {
|
|
75
|
+
db.registerFunction(func.schema);
|
|
76
|
+
} catch (error) {
|
|
77
|
+
throw new Error(
|
|
78
|
+
`Failed to register function '${func.schema.name}/${func.schema.numArgs}': ${error instanceof Error ? error.message : String(error)}`
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Register collations
|
|
85
|
+
if (registrations.collations) {
|
|
86
|
+
for (const collation of registrations.collations) {
|
|
87
|
+
try {
|
|
88
|
+
db.registerCollation(collation.name, collation.func);
|
|
89
|
+
} catch (error) {
|
|
90
|
+
throw new Error(
|
|
91
|
+
`Failed to register collation '${collation.name}': ${error instanceof Error ? error.message : String(error)}`
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Register types
|
|
98
|
+
if (registrations.types) {
|
|
99
|
+
for (const type of registrations.types) {
|
|
100
|
+
try {
|
|
101
|
+
db.registerType(type.name, type.definition);
|
|
102
|
+
} catch (error) {
|
|
103
|
+
throw new Error(
|
|
104
|
+
`Failed to register type '${type.name}': ${error instanceof Error ? error.message : String(error)}`
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration loader for Quoomb
|
|
3
|
-
* Handles loading, parsing, and interpolating quoomb.config.json files
|
|
4
|
-
*/
|
|
5
|
-
import type { Database } from '../core/database.js';
|
|
6
|
-
/**
|
|
7
|
-
* Plugin configuration from config file
|
|
8
|
-
*/
|
|
9
|
-
export interface PluginConfig {
|
|
10
|
-
source: string;
|
|
11
|
-
config?: Record<string, any>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Quoomb configuration file format
|
|
15
|
-
*/
|
|
16
|
-
export interface QuoombConfig {
|
|
17
|
-
$schema?: string;
|
|
18
|
-
plugins?: PluginConfig[];
|
|
19
|
-
autoload?: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Interpolate environment variables in a value
|
|
23
|
-
* Supports ${VAR_NAME} and ${VAR_NAME:-default} syntax
|
|
24
|
-
*/
|
|
25
|
-
export declare function interpolateEnvVars(value: any, env?: Record<string, string>): any;
|
|
26
|
-
/**
|
|
27
|
-
* Interpolate environment variables in a config object
|
|
28
|
-
*/
|
|
29
|
-
export declare function interpolateConfigEnvVars(config: QuoombConfig, env?: Record<string, string>): QuoombConfig;
|
|
30
|
-
/**
|
|
31
|
-
* Load plugins from a config object
|
|
32
|
-
*/
|
|
33
|
-
export declare function loadPluginsFromConfig(db: Database, config: QuoombConfig, options?: {
|
|
34
|
-
allowCdn?: boolean;
|
|
35
|
-
env?: 'auto' | 'browser' | 'node';
|
|
36
|
-
}): Promise<void>;
|
|
37
|
-
/**
|
|
38
|
-
* Validate a config object
|
|
39
|
-
*/
|
|
40
|
-
export declare function validateConfig(config: any): config is QuoombConfig;
|
|
41
|
-
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/config/loader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAIpD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAAG,GAAG,CAkBpF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,YAAY,CAazG;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,EAAE,EAAE,QAAQ,EACZ,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAA;CAAE,GAClE,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,YAAY,CA2BlE"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration loader for Quoomb
|
|
3
|
-
* Handles loading, parsing, and interpolating quoomb.config.json files
|
|
4
|
-
*/
|
|
5
|
-
import { loadPlugin } from '../util/plugin-loader.js';
|
|
6
|
-
/**
|
|
7
|
-
* Interpolate environment variables in a value
|
|
8
|
-
* Supports ${VAR_NAME} and ${VAR_NAME:-default} syntax
|
|
9
|
-
*/
|
|
10
|
-
export function interpolateEnvVars(value, env = {}) {
|
|
11
|
-
if (typeof value === 'string') {
|
|
12
|
-
return value.replace(/\$\{([^}]+)\}/g, (match, varSpec) => {
|
|
13
|
-
const [varName, defaultValue] = varSpec.split(':-');
|
|
14
|
-
return env[varName.trim()] ?? defaultValue ?? match;
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
if (typeof value === 'object' && value !== null) {
|
|
18
|
-
if (Array.isArray(value)) {
|
|
19
|
-
return value.map(v => interpolateEnvVars(v, env));
|
|
20
|
-
}
|
|
21
|
-
const result = {};
|
|
22
|
-
for (const [key, val] of Object.entries(value)) {
|
|
23
|
-
result[key] = interpolateEnvVars(val, env);
|
|
24
|
-
}
|
|
25
|
-
return result;
|
|
26
|
-
}
|
|
27
|
-
return value;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Interpolate environment variables in a config object
|
|
31
|
-
*/
|
|
32
|
-
export function interpolateConfigEnvVars(config, env) {
|
|
33
|
-
let envVars = {};
|
|
34
|
-
if (env) {
|
|
35
|
-
envVars = env;
|
|
36
|
-
}
|
|
37
|
-
else if (typeof process !== 'undefined' && process.env) {
|
|
38
|
-
// Filter out undefined values from process.env
|
|
39
|
-
envVars = Object.fromEntries(Object.entries(process.env).filter(([, v]) => v !== undefined));
|
|
40
|
-
}
|
|
41
|
-
return interpolateEnvVars(config, envVars);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Load plugins from a config object
|
|
45
|
-
*/
|
|
46
|
-
export async function loadPluginsFromConfig(db, config, options) {
|
|
47
|
-
if (!config.plugins || config.plugins.length === 0) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
for (const pluginConfig of config.plugins) {
|
|
51
|
-
try {
|
|
52
|
-
const configObj = pluginConfig.config ?? {};
|
|
53
|
-
// Convert config values to SqlValue type
|
|
54
|
-
const sqlConfig = {};
|
|
55
|
-
for (const [key, value] of Object.entries(configObj)) {
|
|
56
|
-
if (value === null || value === undefined) {
|
|
57
|
-
sqlConfig[key] = null;
|
|
58
|
-
}
|
|
59
|
-
else if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
60
|
-
sqlConfig[key] = value;
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
// For complex types, convert to JSON string
|
|
64
|
-
sqlConfig[key] = JSON.stringify(value);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
await loadPlugin(pluginConfig.source, db, sqlConfig, options);
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
console.warn(`Warning: Failed to load plugin from ${pluginConfig.source}: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Validate a config object
|
|
76
|
-
*/
|
|
77
|
-
export function validateConfig(config) {
|
|
78
|
-
if (typeof config !== 'object' || config === null) {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
if (config.plugins !== undefined) {
|
|
82
|
-
if (!Array.isArray(config.plugins)) {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
for (const plugin of config.plugins) {
|
|
86
|
-
if (typeof plugin !== 'object' || plugin === null) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
if (typeof plugin.source !== 'string') {
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
if (plugin.config !== undefined && typeof plugin.config !== 'object') {
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
if (config.autoload !== undefined && typeof config.autoload !== 'boolean') {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
return true;
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../src/config/loader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAmBtD;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAU,EAAE,MAA8B,EAAE;IAC7E,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;YACxD,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACpD,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,IAAI,YAAY,IAAI,KAAK,CAAC;QACtD,CAAC,CAAC,CAAC;IACL,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAChD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QACpD,CAAC;QACD,MAAM,MAAM,GAAwB,EAAE,CAAC;QACvC,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,MAAM,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC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ACD,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;gBACrE,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC1E,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Physical table access nodes for seek and range scan operations
|
|
3
|
-
* These replace logical TableScanNode during optimization
|
|
4
|
-
*/
|
|
5
|
-
import { PlanNodeType } from './plan-node-type.js';
|
|
6
|
-
import { PlanNode, type UnaryRelationalNode, type PhysicalProperties, type Attribute } from './plan-node.js';
|
|
7
|
-
import { TableReferenceNode } from './reference.js';
|
|
8
|
-
import type { RelationType } from '../../common/datatype.js';
|
|
9
|
-
import type { Scope } from '../scopes/scope.js';
|
|
10
|
-
import type { FilterInfo } from '../../vtab/filter-info.js';
|
|
11
|
-
import type { ScalarPlanNode } from './plan-node.js';
|
|
12
|
-
/**
|
|
13
|
-
* Base class for physical table access operations
|
|
14
|
-
* Provides common functionality for sequential scan, index scan, and index seek
|
|
15
|
-
*/
|
|
16
|
-
export declare abstract class PhysicalTableAccessNode extends PlanNode implements UnaryRelationalNode {
|
|
17
|
-
readonly source: TableReferenceNode;
|
|
18
|
-
readonly filterInfo: FilterInfo;
|
|
19
|
-
private attributesCache;
|
|
20
|
-
private outputType;
|
|
21
|
-
constructor(scope: Scope, source: TableReferenceNode, filterInfo: FilterInfo, estimatedCostOverride?: number);
|
|
22
|
-
getAttributes(): Attribute[];
|
|
23
|
-
getType(): RelationType;
|
|
24
|
-
getChildren(): readonly PlanNode[];
|
|
25
|
-
getRelations(): readonly [TableReferenceNode];
|
|
26
|
-
withChildren(newChildren: readonly PlanNode[]): PlanNode;
|
|
27
|
-
getLogicalAttributes(): Record<string, unknown>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Sequential scan - reads entire table without using indexes
|
|
31
|
-
* Used when no suitable index exists or for small tables
|
|
32
|
-
*/
|
|
33
|
-
export declare class SeqScanNode extends PhysicalTableAccessNode {
|
|
34
|
-
readonly nodeType = PlanNodeType.SeqScan;
|
|
35
|
-
computePhysical(): Partial<PhysicalProperties>;
|
|
36
|
-
toString(): string;
|
|
37
|
-
withChildren(newChildren: readonly PlanNode[]): PlanNode;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Index scan - uses an index to read table data in order
|
|
41
|
-
* Provides ordering and can handle range queries efficiently
|
|
42
|
-
*/
|
|
43
|
-
export declare class IndexScanNode extends PhysicalTableAccessNode {
|
|
44
|
-
readonly indexName: string;
|
|
45
|
-
readonly providesOrdering?: {
|
|
46
|
-
column: number;
|
|
47
|
-
desc: boolean;
|
|
48
|
-
}[] | undefined;
|
|
49
|
-
readonly nodeType = PlanNodeType.IndexScan;
|
|
50
|
-
constructor(scope: Scope, source: TableReferenceNode, filterInfo: FilterInfo, indexName: string, providesOrdering?: {
|
|
51
|
-
column: number;
|
|
52
|
-
desc: boolean;
|
|
53
|
-
}[] | undefined, estimatedCostOverride?: number);
|
|
54
|
-
computePhysical(): Partial<PhysicalProperties>;
|
|
55
|
-
toString(): string;
|
|
56
|
-
getLogicalAttributes(): Record<string, unknown>;
|
|
57
|
-
withChildren(newChildren: readonly PlanNode[]): PlanNode;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Index seek - point lookup or tight range using an index
|
|
61
|
-
* Very efficient for equality constraints and small ranges
|
|
62
|
-
*/
|
|
63
|
-
export declare class IndexSeekNode extends PhysicalTableAccessNode {
|
|
64
|
-
readonly indexName: string;
|
|
65
|
-
readonly seekKeys: ScalarPlanNode[];
|
|
66
|
-
readonly isRange: boolean;
|
|
67
|
-
readonly providesOrdering?: {
|
|
68
|
-
column: number;
|
|
69
|
-
desc: boolean;
|
|
70
|
-
}[] | undefined;
|
|
71
|
-
readonly nodeType = PlanNodeType.IndexSeek;
|
|
72
|
-
constructor(scope: Scope, source: TableReferenceNode, filterInfo: FilterInfo, indexName: string, seekKeys: ScalarPlanNode[], isRange?: boolean, providesOrdering?: {
|
|
73
|
-
column: number;
|
|
74
|
-
desc: boolean;
|
|
75
|
-
}[] | undefined, estimatedCostOverride?: number);
|
|
76
|
-
computePhysical(): Partial<PhysicalProperties>;
|
|
77
|
-
toString(): string;
|
|
78
|
-
getLogicalAttributes(): Record<string, unknown>;
|
|
79
|
-
getSeekKeys(): readonly ScalarPlanNode[];
|
|
80
|
-
getChildren(): readonly PlanNode[];
|
|
81
|
-
withChildren(newChildren: readonly PlanNode[]): PlanNode;
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=physical-access-nodes.d.ts.map
|