sqlc

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type DebugLog

type DebugLog struct {
	ID        int64
	Level     string
	Message   string
	CreatedAt string
}

type DeleteJsonlEntriesParams

type DeleteJsonlEntriesParams struct {
	SessionName string
	SessionPath string
}

type DeleteSessionParams

type DeleteSessionParams struct {
	Name string
	Path string
}

type GetLatestJsonlEntryParams

type GetLatestJsonlEntryParams struct {
	SessionName string
	SessionPath string
}

type GetLatestJsonlEntryRow

type GetLatestJsonlEntryRow struct {
	Uuid      string
	Timestamp string
}

type GetMonitorHeartbeatRow

type GetMonitorHeartbeatRow struct {
	Version   string
	UpdatedAt string
}

type GetSessionStatusParams

type GetSessionStatusParams struct {
	Name string
	Path string
}

type InsertDebugLogParams

type InsertDebugLogParams struct {
	Level     string
	Message   string
	CreatedAt string
}

type JsonlEntry

type JsonlEntry struct {
	SessionName string
	SessionPath string
	Uuid        string
	Timestamp   string
}

type ListSessionsRow

type ListSessionsRow struct {
	Name           string
	Path           string
	Status         string
	AgentSessionID string
	AgentTool      string
	UpdatedAt      string
}

type MonitorHeartbeat

type MonitorHeartbeat struct {
	ID        int64
	Version   string
	UpdatedAt string
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) DeleteJsonlEntries

func (q *Queries) DeleteJsonlEntries(ctx context.Context, arg DeleteJsonlEntriesParams) error

func (*Queries) DeleteOldDebugLog

func (q *Queries) DeleteOldDebugLog(ctx context.Context, createdAt string) error

func (*Queries) DeleteSession

func (q *Queries) DeleteSession(ctx context.Context, arg DeleteSessionParams) error

func (*Queries) GetLatestJsonlEntry

func (q *Queries) GetLatestJsonlEntry(ctx context.Context, arg GetLatestJsonlEntryParams) (GetLatestJsonlEntryRow, error)

func (*Queries) GetMonitorHeartbeat

func (q *Queries) GetMonitorHeartbeat(ctx context.Context) (GetMonitorHeartbeatRow, error)

func (*Queries) GetSessionStatus

func (q *Queries) GetSessionStatus(ctx context.Context, arg GetSessionStatusParams) (string, error)

func (*Queries) InsertDebugLog

func (q *Queries) InsertDebugLog(ctx context.Context, arg InsertDebugLogParams) error

func (*Queries) ListSessions

func (q *Queries) ListSessions(ctx context.Context) ([]ListSessionsRow, error)

func (*Queries) UpdateAgentSessionID

func (q *Queries) UpdateAgentSessionID(ctx context.Context, arg UpdateAgentSessionIDParams) error

func (*Queries) UpdateAgentTool

func (q *Queries) UpdateAgentTool(ctx context.Context, arg UpdateAgentToolParams) error

func (*Queries) UpdateSessionStatusIfUnchanged

func (q *Queries) UpdateSessionStatusIfUnchanged(ctx context.Context, arg UpdateSessionStatusIfUnchangedParams) error

func (*Queries) UpsertJsonlEntry

func (q *Queries) UpsertJsonlEntry(ctx context.Context, arg UpsertJsonlEntryParams) error

func (*Queries) UpsertMonitorHeartbeat

func (q *Queries) UpsertMonitorHeartbeat(ctx context.Context, arg UpsertMonitorHeartbeatParams) error

func (*Queries) UpsertSessionStatus

func (q *Queries) UpsertSessionStatus(ctx context.Context, arg UpsertSessionStatusParams) error

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Session

type Session struct {
	Name           string
	Path           string
	Status         string
	AgentSessionID string
	AgentTool      string
	CreatedAt      string
	UpdatedAt      string
}

type UpdateAgentSessionIDParams

type UpdateAgentSessionIDParams struct {
	AgentSessionID string
	UpdatedAt      string
	Name           string
	Path           string
}

type UpdateAgentToolParams

type UpdateAgentToolParams struct {
	AgentTool string
	UpdatedAt string
	Name      string
	Path      string
}

type UpdateSessionStatusIfUnchangedParams

type UpdateSessionStatusIfUnchangedParams struct {
	Status    string
	UpdatedAt string
	Name      string
	Path      string
	Status_2  string
}

type UpsertJsonlEntryParams

type UpsertJsonlEntryParams struct {
	SessionName string
	SessionPath string
	Uuid        string
	Timestamp   string
}

type UpsertMonitorHeartbeatParams

type UpsertMonitorHeartbeatParams struct {
	Version   string
	UpdatedAt string
}

type UpsertSessionStatusParams

type UpsertSessionStatusParams struct {
	Name      string
	Path      string
	Status    string
	UpdatedAt string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL