sqlcgen

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 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 GetLastUpdateTimeRow

type GetLastUpdateTimeRow struct {
	GithubID        int64
	GithubUpdatedAt time.Time
}

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 Queries

type Queries struct {
}

func New

func New() *Queries

func (*Queries) GetByOwnerName added in v0.12.0

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

func (*Queries) GetLastUpdateTime

func (q *Queries) GetLastUpdateTime(ctx context.Context, db DBTX, repositoryID int64) (GetLastUpdateTimeRow, 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)

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
	ResourceType   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 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