sqlcgen

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ID              int64
	CreatedAt       *time.Time
	UpdatedAt       *time.Time
	IssueID         int64
	GithubID        int64
	Body            *string
	AuthorLogin     *string
	AuthorGithubID  *int64
	GithubCreatedAt time.Time
	GithubUpdatedAt time.Time
}

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 GetByOwnerNameParams added in v0.12.0

type GetByOwnerNameParams struct {
	Owner string
	Name  string
}

type GetIssueByIDRow added in v0.18.0

type GetIssueByIDRow struct {
	ID     int64
	Number int64
	Title  string
	Body   string
	State  string
}

type GetIssueByRepoAndNumberParams added in v0.16.0

type GetIssueByRepoAndNumberParams struct {
	RepositoryID int64
	Number       int64
}

type GetIssueByRepoAndNumberRow added in v0.16.0

type GetIssueByRepoAndNumberRow struct {
	ID     int64
	Number int64
	Title  string
	Body   string
	State  string
}

type GetLastUpdateTimeRow

type GetLastUpdateTimeRow struct {
	GithubID        int64
	GithubUpdatedAt time.Time
}

type GetRepositoryByIDRow added in v0.19.0

type GetRepositoryByIDRow struct {
	ID    int64
	Owner string
	Name  string
}

type GetSyncCursorParams added in v0.13.0

type GetSyncCursorParams struct {
	RepositoryID int64
	Topic        string
}

type Goqite added in v0.17.0

type Goqite struct {
	ID       string
	Created  string
	Updated  string
	Queue    string
	Body     []byte
	Timeout  string
	Received int64
	Priority int64
}

type InsertOutboxEventParams added in v0.15.0

type InsertOutboxEventParams struct {
	Topic        string
	ResourceID   int64
	RepositoryID int64
}

type Issue

type Issue struct {
	ID              int64
	CreatedAt       time.Time
	UpdatedAt       time.Time
	RepositoryID    int64
	GithubID        int64
	Number          int64
	Title           string
	Body            string
	State           string
	IsPullRequest   bool
	PrUrl           *string
	PrHtmlUrl       *string
	PrDiffUrl       *string
	PrPatchUrl      *string
	GithubCreatedAt time.Time
	GithubUpdatedAt time.Time
	SyncedAt        time.Time
}

type IssueAssignee

type IssueAssignee struct {
	IssueID int64
	UserID  int64
}

type IssueLabel

type IssueLabel struct {
	IssueID int64
	LabelID int64
}

type Label

type Label struct {
	ID           int64
	CreatedAt    *time.Time
	UpdatedAt    *time.Time
	RepositoryID int64
	GithubID     int64
	Name         string
	Color        *string
	Description  *string
}

type ListIssuesRow added in v0.16.0

type ListIssuesRow struct {
	ID           int64
	RepositoryID int64
	Number       int64
	Title        string
	State        string
}

type OutboxEvent added in v0.15.0

type OutboxEvent struct {
	ID           int64
	CreatedAt    time.Time
	Topic        string
	ResourceID   int64
	RepositoryID int64
	ProcessedAt  *time.Time
}

type PendingOutboxEventsAllParams added in v0.16.1

type PendingOutboxEventsAllParams struct {
	Topic string
	Limit int64
}

type PendingOutboxEventsAllRow added in v0.16.1

type PendingOutboxEventsAllRow struct {
	ID           int64
	CreatedAt    time.Time
	Topic        string
	ResourceID   int64
	RepositoryID int64
}

type PendingOutboxEventsParams added in v0.15.0

type PendingOutboxEventsParams struct {
	Topic        string
	RepositoryID int64
	Limit        int64
}

type PendingOutboxEventsRow added in v0.15.0

type PendingOutboxEventsRow struct {
	ID           int64
	CreatedAt    time.Time
	Topic        string
	ResourceID   int64
	RepositoryID int64
}

type Queries

type Queries struct {
}

func New

func New() *Queries

func (*Queries) AckOutboxEvent added in v0.15.0

func (q *Queries) AckOutboxEvent(ctx context.Context, db DBTX, id int64) error

func (*Queries) GetByOwnerName added in v0.12.0

func (q *Queries) GetByOwnerName(ctx context.Context, db DBTX, arg GetByOwnerNameParams) (int64, error)

func (*Queries) GetIssueByID added in v0.18.0

func (q *Queries) GetIssueByID(ctx context.Context, db DBTX, id int64) (GetIssueByIDRow, error)

func (*Queries) GetIssueByRepoAndNumber added in v0.16.0

func (q *Queries) GetIssueByRepoAndNumber(ctx context.Context, db DBTX, arg GetIssueByRepoAndNumberParams) (GetIssueByRepoAndNumberRow, error)

func (*Queries) GetLastUpdateTime

func (q *Queries) GetLastUpdateTime(ctx context.Context, db DBTX, repositoryID int64) (GetLastUpdateTimeRow, error)

func (*Queries) GetRepositoryByID added in v0.19.0

func (q *Queries) GetRepositoryByID(ctx context.Context, db DBTX, id int64) (GetRepositoryByIDRow, error)

func (*Queries) GetSyncCursor added in v0.13.0

func (q *Queries) GetSyncCursor(ctx context.Context, db DBTX, arg GetSyncCursorParams) (SyncCursor, error)

func (*Queries) InsertOutboxEvent added in v0.15.0

func (q *Queries) InsertOutboxEvent(ctx context.Context, db DBTX, arg InsertOutboxEventParams) error

func (*Queries) ListIssues added in v0.16.0

func (q *Queries) ListIssues(ctx context.Context, db DBTX) ([]ListIssuesRow, error)

func (*Queries) PendingOutboxEvents added in v0.15.0

func (q *Queries) PendingOutboxEvents(ctx context.Context, db DBTX, arg PendingOutboxEventsParams) ([]PendingOutboxEventsRow, error)

func (*Queries) PendingOutboxEventsAll added in v0.16.1

func (q *Queries) PendingOutboxEventsAll(ctx context.Context, db DBTX, arg PendingOutboxEventsAllParams) ([]PendingOutboxEventsAllRow, error)

func (*Queries) UpsertIssue

func (q *Queries) UpsertIssue(ctx context.Context, db DBTX, arg UpsertIssueParams) error

func (*Queries) UpsertRepository added in v0.12.0

func (q *Queries) UpsertRepository(ctx context.Context, db DBTX, arg UpsertRepositoryParams) (int64, error)

func (*Queries) UpsertSyncCursor added in v0.13.0

func (q *Queries) UpsertSyncCursor(ctx context.Context, db DBTX, arg UpsertSyncCursorParams) error

type Repository

type Repository struct {
	ID        int64
	CreatedAt *time.Time
	UpdatedAt *time.Time
	Owner     string
	Name      string
	Enabled   *bool
	LastError *string
}

type SyncCursor

type SyncCursor struct {
	ID             int64
	CreatedAt      *time.Time
	UpdatedAt      *time.Time
	RepositoryID   int64
	Topic          string
	SinceUpdatedAt time.Time
	NextPage       int64
	ETag           string
}

type UpsertIssueParams

type UpsertIssueParams struct {
	RepositoryID    int64
	GithubID        int64
	Number          int64
	Title           string
	Body            string
	State           string
	IsPullRequest   bool
	PrUrl           *string
	PrHtmlUrl       *string
	PrDiffUrl       *string
	PrPatchUrl      *string
	GithubCreatedAt time.Time
	GithubUpdatedAt time.Time
	SyncedAt        time.Time
}

type UpsertRepositoryParams added in v0.12.0

type UpsertRepositoryParams struct {
	Owner string
	Name  string
}

type UpsertSyncCursorParams added in v0.13.0

type UpsertSyncCursorParams struct {
	RepositoryID   int64
	Topic          string
	SinceUpdatedAt time.Time
	NextPage       int64
	ETag           string
}

type User

type User struct {
	ID        int64
	CreatedAt *time.Time
	UpdatedAt *time.Time
	GithubID  int64
	Login     string
}

Jump to

Keyboard shortcuts

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