Commit df98b15
committed
sea-execution: refresh test fakes for the merged-kernel binding surface
Rebased onto the fixed sea-auth (#379 review fixes). Updates the unit-test
fakes to the merged-kernel Connection/Statement surface so the spec
type-checks under ts-node:
- FakeNativeStatement: add statementId + the status accessors
(numModifiedRows/displayMessage/diagnosticInfo/errorDetailsJson) and make
schema() synchronous.
- FakeNativeConnection: add the sessionId getter; make executeStatement's
options param optional so it stays assignable to the binding's
executeStatement(sql) while still recording forwarded options.
- makeBinding: cast Connection/Statement through the binding's member types
(typeof is illegal on the loader's type aliases).
- e2e: cast useSEA as ConnectionOptions & InternalConnectionOptions (the
e2e test now lives under the wired tests/e2e/sea/ dir).
Note: the SeaOperationBackend status()/getResultMetadata() neutral-type
conformance and the per-statement-options -> session-level migration remain
pre-existing follow-ups for sea-results (tracked on the stack tip).
Co-authored-by: Isaac1 parent d57093d commit df98b15
2 files changed
Lines changed: 38 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | | - | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
102 | | - | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | | - | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
57 | 78 | | |
58 | 79 | | |
59 | 80 | | |
| |||
67 | 88 | | |
68 | 89 | | |
69 | 90 | | |
70 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
71 | 99 | | |
72 | 100 | | |
73 | 101 | | |
| |||
88 | 116 | | |
89 | 117 | | |
90 | 118 | | |
91 | | - | |
92 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
93 | 123 | | |
94 | 124 | | |
95 | 125 | | |
| |||
0 commit comments