Skip to content

Commit 803f055

Browse files
Copilothotlong
andcommitted
Fix: Update InMemoryDriver capabilities to match expanded schema
Add missing query operation capabilities (queryFilters, queryAggregations, querySorting, queryPagination, queryWindowFunctions, querySubqueries) to match the updated DriverCapabilitiesSchema. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 8eb2e9f commit 803f055

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

packages/driver-memory/src/memory-driver.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,22 @@ export class InMemoryDriver implements DriverInterface {
2323
}
2424

2525
supports = {
26+
// Transaction & Connection Management
2627
transactions: false,
27-
joins: false,
28-
fullTextSearch: false,
29-
jsonFields: true,
30-
arrayFields: true,
28+
29+
// Query Operations
30+
queryFilters: true, // In-memory filtering works
31+
queryAggregations: true, // Can compute aggregations in memory
32+
querySorting: true, // Can sort in memory
33+
queryPagination: true, // Can paginate in memory
34+
queryWindowFunctions: false, // Not implemented yet
35+
querySubqueries: false, // Not implemented yet
36+
joins: false, // Not implemented yet
37+
38+
// Advanced Features
39+
fullTextSearch: false, // Not implemented yet
40+
jsonFields: true, // Native JS object support
41+
arrayFields: true, // Native JS array support
3142
};
3243

3344
/**

0 commit comments

Comments
 (0)