Go · 4394 bytes Raw Blame History
1 // Code generated by sqlc. DO NOT EDIT.
2 // versions:
3 // sqlc v1.31.1
4
5 package actionsdb
6
7 import (
8 "context"
9
10 "github.com/jackc/pgx/v5/pgtype"
11 )
12
13 type Querier interface {
14 // SPDX-License-Identifier: AGPL-3.0-or-later
15 AppendStepLogChunk(ctx context.Context, db DBTX, arg AppendStepLogChunkParams) (AppendStepLogChunkRow, error)
16 DeleteExpiredArtifacts(ctx context.Context, db DBTX) ([]DeleteExpiredArtifactsRow, error)
17 DeleteOrgSecret(ctx context.Context, db DBTX, arg DeleteOrgSecretParams) error
18 DeleteOrgVariable(ctx context.Context, db DBTX, arg DeleteOrgVariableParams) error
19 DeleteRepoSecret(ctx context.Context, db DBTX, arg DeleteRepoSecretParams) error
20 DeleteRepoVariable(ctx context.Context, db DBTX, arg DeleteRepoVariableParams) error
21 DeleteStepLogChunks(ctx context.Context, db DBTX, stepID int64) error
22 GetArtifactByID(ctx context.Context, db DBTX, id int64) (WorkflowArtifact, error)
23 GetOrgSecret(ctx context.Context, db DBTX, arg GetOrgSecretParams) (GetOrgSecretRow, error)
24 GetRepoSecret(ctx context.Context, db DBTX, arg GetRepoSecretParams) (GetRepoSecretRow, error)
25 GetRunnerByID(ctx context.Context, db DBTX, id int64) (WorkflowRunner, error)
26 GetRunnerByName(ctx context.Context, db DBTX, name string) (WorkflowRunner, error)
27 GetRunnerByTokenHash(ctx context.Context, db DBTX, tokenHash []byte) (GetRunnerByTokenHashRow, error)
28 GetWorkflowJobByID(ctx context.Context, db DBTX, id int64) (WorkflowJob, error)
29 GetWorkflowRunByID(ctx context.Context, db DBTX, id int64) (WorkflowRun, error)
30 GetWorkflowStepByID(ctx context.Context, db DBTX, id int64) (WorkflowStep, error)
31 // SPDX-License-Identifier: AGPL-3.0-or-later
32 InsertArtifact(ctx context.Context, db DBTX, arg InsertArtifactParams) (WorkflowArtifact, error)
33 // SPDX-License-Identifier: AGPL-3.0-or-later
34 InsertRunner(ctx context.Context, db DBTX, arg InsertRunnerParams) (WorkflowRunner, error)
35 InsertRunnerToken(ctx context.Context, db DBTX, arg InsertRunnerTokenParams) (RunnerToken, error)
36 // SPDX-License-Identifier: AGPL-3.0-or-later
37 InsertWorkflowJob(ctx context.Context, db DBTX, arg InsertWorkflowJobParams) (WorkflowJob, error)
38 // SPDX-License-Identifier: AGPL-3.0-or-later
39 InsertWorkflowRun(ctx context.Context, db DBTX, arg InsertWorkflowRunParams) (WorkflowRun, error)
40 // SPDX-License-Identifier: AGPL-3.0-or-later
41 InsertWorkflowStep(ctx context.Context, db DBTX, arg InsertWorkflowStepParams) (WorkflowStep, error)
42 ListArtifactsForRun(ctx context.Context, db DBTX, runID int64) ([]ListArtifactsForRunRow, error)
43 ListJobsForRun(ctx context.Context, db DBTX, runID int64) ([]ListJobsForRunRow, error)
44 ListOrgSecrets(ctx context.Context, db DBTX, orgID pgtype.Int8) ([]ListOrgSecretsRow, error)
45 ListOrgVariables(ctx context.Context, db DBTX, orgID pgtype.Int8) ([]ListOrgVariablesRow, error)
46 ListRepoSecrets(ctx context.Context, db DBTX, repoID pgtype.Int8) ([]ListRepoSecretsRow, error)
47 ListRepoVariables(ctx context.Context, db DBTX, repoID pgtype.Int8) ([]ListRepoVariablesRow, error)
48 ListRunners(ctx context.Context, db DBTX) ([]ListRunnersRow, error)
49 ListStepLogChunks(ctx context.Context, db DBTX, arg ListStepLogChunksParams) ([]WorkflowStepLogChunk, error)
50 ListStepsForJob(ctx context.Context, db DBTX, jobID int64) ([]ListStepsForJobRow, error)
51 ListWorkflowRunsForRepo(ctx context.Context, db DBTX, arg ListWorkflowRunsForRepoParams) ([]ListWorkflowRunsForRepoRow, error)
52 // Atomic next-index emitter: take the max + 1 for this repo. Pairs
53 // with the (repo_id, run_index) UNIQUE so concurrent inserts that
54 // race here will catch a unique-violation and the caller retries.
55 NextRunIndexForRepo(ctx context.Context, db DBTX, repoID int64) (int32, error)
56 RevokeAllTokensForRunner(ctx context.Context, db DBTX, runnerID int64) error
57 TouchRunnerHeartbeat(ctx context.Context, db DBTX, arg TouchRunnerHeartbeatParams) error
58 UpsertOrgSecret(ctx context.Context, db DBTX, arg UpsertOrgSecretParams) (WorkflowSecret, error)
59 UpsertOrgVariable(ctx context.Context, db DBTX, arg UpsertOrgVariableParams) (ActionsVariable, error)
60 // SPDX-License-Identifier: AGPL-3.0-or-later
61 UpsertRepoSecret(ctx context.Context, db DBTX, arg UpsertRepoSecretParams) (WorkflowSecret, error)
62 // SPDX-License-Identifier: AGPL-3.0-or-later
63 UpsertRepoVariable(ctx context.Context, db DBTX, arg UpsertRepoVariableParams) (ActionsVariable, error)
64 }
65
66 var _ Querier = (*Queries)(nil)
67