Skip to content

Commit 8e51745

Browse files
committed
feat: Add datasource and driver schemas with validation
- Introduced `DatasourceSchema` and `DatasourceCapabilities` to define the structure and capabilities of data sources. - Implemented `DriverInterfaceSchema` and `DriverCapabilitiesSchema` to standardize driver implementations across various databases. - Created comprehensive tests for driver capabilities and interface to ensure compliance with defined schemas. - Added support for various driver operations including CRUD, bulk operations, and transaction management.
1 parent 685c027 commit 8e51745

File tree

6 files changed

+3
-3
lines changed

6 files changed

+3
-3
lines changed
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { z } from 'zod';
2-
import { QuerySchema } from '../data/query.zod';
2+
import { QuerySchema } from './query.zod';
33

44
/**
55
* Common Driver Options

packages/spec/src/data/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ export * from './dataset.zod';
1818
export * from './query.zod';
1919
export * from './filter.zod';
2020
export * from './mapping.zod';
21+
export * from './driver.zod';
22+
export * from './datasource.zod';
2123
export * from './trigger.zod';

packages/spec/src/system/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
export * from './manifest.zod';
12-
export * from './datasource.zod';
1312
export * from './identity.zod';
1413
export * from './auth.zod';
1514
export * from './auth-protocol';
@@ -22,7 +21,6 @@ export * from './audit.zod';
2221
export * from './license.zod';
2322
export * from './webhook.zod';
2423
export * from './translation.zod';
25-
export * from './driver.zod';
2624
export * from './plugin.zod';
2725
export * from './events.zod';
2826
export * from './job.zod';

0 commit comments

Comments
 (0)