CHECKPOINT -- the full State Store port is in progress; this lands the compile-clean core so the review pass has a diff to work against. Remaining: advisory-lock ownership, event-insert serialization, maintenance, and the ported test battery. Two corrections to behaviour that already shipped, not new features: - UpdateTask wrote park_reason raw where SQLite applies clip(park_reason, 4000); the PostgreSQL adapter now clips before binding (clip.go). - tasks.review_cursor existed on the protobuf wire and in workflow.Task but not in the PostgreSQL schema; 0004 adds it as a NEW migration rather than amending 0001 because a dev database may already have applied 0001 and goose tracks version numbers, not checksums. Also moves the control-plane Resource/ResourceWrite types and their sentinels into storecontract so the postgres package can stop importing internal/store (they stay aliased there for daemon callers).
152 lines
3.1 KiB
Go
152 lines
3.1 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.31.1
|
|
|
|
package postgresdb
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type ApplyStatus struct {
|
|
Process string
|
|
Kind string
|
|
AppliedVersion int64
|
|
Error string
|
|
ReportedAt time.Time
|
|
}
|
|
|
|
type ChannelStatus struct {
|
|
ID string
|
|
Name string
|
|
State string
|
|
Detail string
|
|
Configured bool
|
|
ReloadSupported bool
|
|
ObservedAt time.Time
|
|
}
|
|
|
|
type ConfigSnapshot struct {
|
|
ID int64
|
|
Schema string
|
|
Document string
|
|
PublishedAt time.Time
|
|
}
|
|
|
|
type Event struct {
|
|
ID int64
|
|
At time.Time
|
|
Kind string
|
|
TaskID int64
|
|
Repo string
|
|
Issue int64
|
|
Workflow string
|
|
Stage string
|
|
Attempt int64
|
|
ActorID string
|
|
ActorKind string
|
|
PrincipalID string
|
|
Detail string
|
|
Data string
|
|
}
|
|
|
|
type Identity struct {
|
|
ID string
|
|
Kind string
|
|
DisplayName string
|
|
Lifecycle string
|
|
Version int64
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type IdentityAlias struct {
|
|
Alias string
|
|
IdentityID string
|
|
}
|
|
|
|
type IdentityEvent struct {
|
|
ID int64
|
|
IdentityID string
|
|
EventType string
|
|
FromLifecycle string
|
|
ToLifecycle string
|
|
DisplayName string
|
|
ActorID string
|
|
Source string
|
|
RequestID string
|
|
At time.Time
|
|
}
|
|
|
|
type IdentitySubject struct {
|
|
Issuer string
|
|
Subject string
|
|
IdentityID string
|
|
BoundAt time.Time
|
|
}
|
|
|
|
type Resource struct {
|
|
Kind string
|
|
Value []byte
|
|
Version int64
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type ResourceHistory struct {
|
|
ID int64
|
|
Kind string
|
|
Value []byte
|
|
Version int64
|
|
Actor string
|
|
Source string
|
|
RequestID string
|
|
ExpectedVersion int64
|
|
CurrentVersion int64
|
|
At time.Time
|
|
}
|
|
|
|
type Task struct {
|
|
ID int64
|
|
Owner string
|
|
Repo string
|
|
IssueNumber int64
|
|
Title string
|
|
Body string
|
|
Labels string
|
|
Status string
|
|
Workflow string
|
|
Stage string
|
|
Branch string
|
|
Plan string
|
|
Notes string
|
|
PrNumber int64
|
|
TokensUsed int64
|
|
Iterations int64
|
|
Attempt int64
|
|
ParkReason string
|
|
WatchCommentID int64
|
|
ParkClass string
|
|
RemediationRounds int64
|
|
RetryCount int64
|
|
Source string
|
|
Identity string
|
|
BindingID string
|
|
BindingVersion int64
|
|
ReviewPayload string
|
|
WorkflowDefinitionVersion int64
|
|
WorkflowDefinitionDigest string
|
|
WorkflowDefinitionYaml string
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
ReviewCursor int64
|
|
}
|
|
|
|
type Transition struct {
|
|
ID int64
|
|
TaskID int64
|
|
At time.Time
|
|
FromStatus string
|
|
ToStatus string
|
|
Detail string
|
|
}
|