Documentation ¶
Index ¶
- type Assets
- type Challenges
- type Challengesubmissions
- type CreateAssetParams
- type CreateUserParams
- type DBTX
- type DeleteAssetParams
- type Files
- type GetAssetDetailsByIdRow
- type GetAssetDetailsByUrlRow
- type GetFileRow
- type ListAssetByCreatorParams
- type Queries
- func (q *Queries) CreateAsset(ctx context.Context, arg CreateAssetParams) (int64, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
- func (q *Queries) DeleteAsset(ctx context.Context, arg DeleteAssetParams) error
- func (q *Queries) GetAssetDetailsById(ctx context.Context, id int64) (GetAssetDetailsByIdRow, error)
- func (q *Queries) GetAssetDetailsByUrl(ctx context.Context, urlPath string) (GetAssetDetailsByUrlRow, error)
- func (q *Queries) GetFile(ctx context.Context, urlPath string) (GetFileRow, error)
- func (q *Queries) ListAssetByCreator(ctx context.Context, arg ListAssetByCreatorParams) ([]Assets, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Store
- type Tokens
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Challenges ¶
type Challengesubmissions ¶
type CreateAssetParams ¶
type CreateUserParams ¶
type DeleteAssetParams ¶
type GetAssetDetailsByIdRow ¶
type GetAssetDetailsByUrlRow ¶
type GetFileRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAsset ¶
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
((Pagenumber - 1) * PageSize)
func (*Queries) DeleteAsset ¶
func (q *Queries) DeleteAsset(ctx context.Context, arg DeleteAssetParams) error
func (*Queries) GetAssetDetailsById ¶
func (*Queries) GetAssetDetailsByUrl ¶
func (*Queries) ListAssetByCreator ¶
type Store ¶
type Store struct { *Queries // Embedding Queries struct generated by sqlc // contains filtered or unexported fields }
Store provides all functions to execute db queries and transactions
func (*Store) CreateAssetFile ¶
CreateAssetFile Creates assets and files in a transaction so that errors can be caught before committing
Click to show internal directories.
Click to hide internal directories.