Documentation
¶
Index ¶
- func Init(databaseSource string)
- type DBTX
- type Queries
- func (q *Queries) DeleteRepo(ctx context.Context, id int64) error
- func (q *Queries) GetRepo(ctx context.Context, id int64) (Repository, error)
- func (q *Queries) ListRepos(ctx context.Context) ([]Repository, error)
- func (q *Queries) UpdateRepoContainerId(ctx context.Context, arg UpdateRepoContainerIdParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Repository
- type UpdateRepoContainerIdParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func GetQueries ¶
func GetQueries() *Queries
func (*Queries) DeleteRepo ¶
-- name: CreateAuthor :one INSERT INTO authors (
name, bio
) VALUES (
?, ?
) RETURNING *; -- name: UpdateAuthor :exec UPDATE authors set name = ?, bio = ? WHERE id = ?;
func (*Queries) UpdateRepoContainerId ¶
func (q *Queries) UpdateRepoContainerId(ctx context.Context, arg UpdateRepoContainerIdParams) error
type Repository ¶
type Repository struct {
ID int64
Name string
Url string
ContainerRepo sql.NullString
ContainerTag sql.NullString
ContainerID sql.NullString
ComposeFile sql.NullString
ComposeService sql.NullString
}
type UpdateRepoContainerIdParams ¶
type UpdateRepoContainerIdParams struct {
ContainerID sql.NullString
ID int64
}
Click to show internal directories.
Click to hide internal directories.