|
4 | 4 | **Deciders**: ObjectStack Protocol Architects |
5 | 5 | **Builds on**: [ADR-0005](./0005-metadata-customization-overlay.md) (one Zod source of truth per metadata type) |
6 | 6 | **Consumers**: `@objectstack/spec`, `@objectstack/runtime`, `@objectstack/objectql`, `@objectstack/plugins/driver-sql`, `@objectstack/services/service-ai`, `@objectstack/cli`, `../objectui` |
7 | | -**Amended by**: [ADR-0143](./0143-outbound-connector-auth-is-open-tier.md) (2026-10-27), attribution only — see the note below. D7 (2026-10-29, ruling 6486136301 on #27298) — an API-backed datasource may borrow a declared connector instance's credential through `external.connector`; see the D7 note below. #27688 (2026-10-30), example only — §8's `credentialsRef` is a `sys_secret:` handle, the only form the shipped secret binder resolves; see the note under §8. |
| 7 | +**Amended by**: [ADR-0143](./0143-outbound-connector-auth-is-open-tier.md) (2026-10-27), attribution only — see the note below. D7 (2026-10-29, ruling 6486136301 on #27298) — an API-backed datasource may borrow a declared connector instance's credential through `external.connector`; see the D7 note below. #27688 (2026-10-30), example only — §8's `credentialsRef` is a `sys_secret:` handle, the only form the shipped secret binder resolves; see the note under §8. #27917 (2026-10-30), dialect list only — §4.6 names the `odata` vocabulary the matrix gained with #27745. |
8 | 8 |
|
9 | 9 | > **Amendment note D7 (2026-10-29, ruling 6486136301, letter A) — a second credential channel.** |
10 | 10 | > §10 says credentials reach a datasource only through `credentialsRef`. That stays true for a |
@@ -410,8 +410,13 @@ A pure module `packages/spec/src/data/type-compat.ts` maps SQL types |
410 | 410 | (`text`, `varchar`, `numeric(10,2)`, `timestamptz`, `jsonb`, …) to |
411 | 411 | ObjectStack field types, and exposes `isCompatible(remoteSqlType, |
412 | 412 | fieldType): boolean | 'lossy'`. The matrix is dialect-aware |
413 | | -(`postgres`, `mysql`, `sqlite`, `snowflake`, `bigquery`, `mongo`). New |
414 | | -dialects extend the matrix; the matrix is unit-tested independently. |
| 413 | +(`postgres`, `mysql`, `sqlite`, `snowflake`, `bigquery`, `mongo`, `odata`). New |
| 414 | +dialects extend the matrix; the matrix is unit-tested independently. `mongo` and |
| 415 | +`odata` are the two vocabularies that are not SQL: `DIALECT_ALIASES.mongo` maps |
| 416 | +BSON type names, and `DIALECT_ALIASES.odata` maps the EDM primitive types an |
| 417 | +OData service's `$metadata` declares, except `Edm.Duration` and the |
| 418 | +`Edm.Geography*` / `Edm.Geometry*` families, which it leaves unmapped so a draft |
| 419 | +flags them for review. |
415 | 420 |
|
416 | 421 | --- |
417 | 422 |
|
|
0 commit comments