Commit 5cfd4d5
authored
The last open-core second site of "definition → live driver": a host
objectstack.config.ts with objects but no driver plugin had serve build a
driver via createStorageDriver + DriverPlugin. Now resolveStorageDefinition
translates kind + URL into { driverId, config } and serve hands it to
DefaultDatasourcePlugin — shared factory, bootCritical verdict, shared
OS_ALLOW_DRIVER_CONNECT_FAILURE, real status in Setup → Datasources.
- mysql/mysql2 joined the shared driver factory (SqlDriver over mysql2).
- Factory honours config.autoMigrate (#2186 dev self-heal) and config.persist
(CLI wasm on-disconnect) as host-composition passthroughs.
- turso/libSQL keeps the loud typed UnsupportedDriverError at resolution.
- The telemetry sibling stays a pre-built DriverPlugin (documented escape
hatch); gating moves to the statically-known sqlite file path.
Verified: host-composed config boots through the declared fallback; artifact
path dev:crm --fresh is table-for-table unchanged. Remaining second site:
cloud-stack (tracked in #3826). Pre-existing "Service 'manifest' is async"
failure ruled unrelated by stashed-baseline control → #3887.
1 parent 259af21 commit 5cfd4d5
7 files changed
Lines changed: 303 additions & 211 deletions
File tree
- .changeset
- docs/adr
- packages
- cli/src
- commands
- utils
- services/service-datasource/src
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
896 | 901 | | |
897 | | - | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
898 | 906 | | |
899 | 907 | | |
900 | 908 | | |
| |||
906 | 914 | | |
907 | 915 | | |
908 | 916 | | |
909 | | - | |
910 | | - | |
911 | | - | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
912 | 925 | | |
913 | 926 | | |
914 | 927 | | |
| |||
0 commit comments