Skip to content

Commit 72a6196

Browse files
Copilothotlong
andcommitted
Fix: Remove Driver import and use DriverInterface consistently
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 5686de8 commit 72a6196

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • packages/foundation/core/src

packages/foundation/core/src/app.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import {
1010
MetadataRegistry,
11-
Driver,
1211
ObjectConfig,
1312
ObjectQLContext,
1413
ObjectQLContextOptions,
@@ -23,21 +22,19 @@ import {
2322
LoaderPlugin
2423
} from '@objectql/types';
2524
import { ObjectRepository } from './repository';
26-
// import { createDriverFromConnection } from './driver'; // REMOVE THIS
2725

28-
// import { loadRemoteFromUrl } from './remote';
2926
import { executeActionHelper, registerActionHelper, ActionEntry } from './action';
3027
import { registerHookHelper, triggerHookHelper, HookEntry } from './hook';
3128
import { registerObjectHelper, getConfigsHelper } from './object';
3229
import { convertIntrospectedSchemaToObjects } from './util';
3330

34-
// Import ObjectStack engine for driver management
31+
// Import ObjectStack engine and standard driver interface
3532
import { ObjectQL as ObjectStackEngine } from '@objectstack/objectql';
3633
import { DriverInterface } from '@objectstack/spec';
3734

3835
export class ObjectQL implements IObjectQL {
3936
public metadata: MetadataRegistry;
40-
private datasources: Record<string, Driver> = {};
37+
private datasources: Record<string, DriverInterface> = {};
4138
private remotes: string[] = [];
4239
private hooks: Record<string, HookEntry[]> = {};
4340
private actions: Record<string, ActionEntry> = {};

0 commit comments

Comments
 (0)