Type Alias: DbaChange
type DbaChange = object;Defined in: packages/sdk/src/index.ts:232
One row of a DB’s change ledger (listChanges, GLOBAL-041): a DDL statement
the DBA committed, or (origin attach, status proposed) one it proposes on
an attached DB (GLOBAL-043), with the statement that undoes it. reason
is the proposal’s sentence; null on committed hosted-path rows.
verification is verify’s verdict once an applied proposal’s window has
passed (reverted: its p95 est. — on a D1, its mean time or rows read per
run — ran > 10 % worse and its inverse ran).
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
createdAt |
number |
packages/sdk/src/index.ts:253 |
ddl |
string |
packages/sdk/src/index.ts:250 |
id |
number |
packages/sdk/src/index.ts:233 |
inverse |
string |
packages/sdk/src/index.ts:251 |
kind |
"create_table" | "add_column" | "create_index" |
packages/sdk/src/index.ts:248 |
origin |
"insert" | "ask" | "attach" |
packages/sdk/src/index.ts:234 |
reason |
string | null |
packages/sdk/src/index.ts:252 |
status |
"proposed" | "applied" | "rejected" | "reverted" |
packages/sdk/src/index.ts:235 |
table |
string |
packages/sdk/src/index.ts:249 |
verification? |
| { afterP95Ms: number; beforeP95Ms: number; fingerprint: string; verdict: "keep" | "revert"; } | { afterMeanMs: number; afterRowsRead: number; beforeMeanMs: number; beforeRowsRead: number; query: string; verdict: "keep" | "revert"; } | { reason: string; verdict: "unmeasured"; } | null |
packages/sdk/src/index.ts:236 |