Expand description
Schema definitions for BIRD tables.
§BIRD v5 Schema
The v5 schema splits invocations into attempts + outcomes:
- attempts: Record of invocation start (cmd, cwd, timestamp, etc.)
- outcomes: Record of invocation completion (exit_code, duration, etc.)
- invocations: VIEW joining attempts LEFT JOIN outcomes with derived status
Status is derived from the join:
pending: attempt exists but no outcomecompleted: outcome exists with exit_codeorphaned: outcome exists but exit_code is NULL (signal/crash)
Structs§
- Attempt
Record - An attempt record (the start of a command execution).
- Event
Record - An event record (a parsed log entry from an invocation output).
- Invocation
Record - An invocation record (a captured command/process execution).
- Outcome
Record - An outcome record (the completion of a command execution).
- Output
Record - An output record (stdout/stderr from an invocation).
- Session
Record - A session record (a shell or process that captures invocations).
Constants§
- ATTEMPTS_
SCHEMA - SQL to create the attempts table (v5 schema).
- BIRD_
INVOCATION_ UUID_ VAR - Environment variable for sharing invocation UUID between nested BIRD clients.
- BIRD_
META_ SCHEMA - SQL to create the bird_meta table for schema versioning.
- BIRD_
PARENT_ CLIENT_ VAR - Environment variable for the parent BIRD client name.
- BIRD_
SCHEMA_ VERSION - Current BIRD schema version.
- EVENTS_
SCHEMA - SQL to create the events table schema (for documentation/reference).
- INVOCATIONS_
SCHEMA - SQL to create the invocations table schema (for documentation/reference).
- INVOCATIONS_
VIEW_ SCHEMA - SQL to create the invocations VIEW (v5 schema).
- OUTCOMES_
SCHEMA - SQL to create the outcomes table (v5 schema).
- SESSIONS_
SCHEMA - SQL to create the sessions table schema (for documentation/reference).