Documentation
¶
Index ¶
- type DBTX
- type History
- type HistoryAddParams
- type HistoryGetExclusiveParams
- type HistoryGetInclusiveParams
- type HistoryGetParams
- type HistoryRemoveParams
- type HistoryUpdateCategoriesParams
- type HistoryUpdateOwnerParams
- type NetworkType
- type NullNetworkType
- type NullPostType
- type Owner
- type PostType
- type Querier
- type Queries
- func (q *Queries) Close() error
- func (q *Queries) HistoryAdd(ctx context.Context, arg HistoryAddParams) (History, error)
- func (q *Queries) HistoryGet(ctx context.Context, arg HistoryGetParams) (History, error)
- func (q *Queries) HistoryGetExclusive(ctx context.Context, arg HistoryGetExclusiveParams) ([]History, error)
- func (q *Queries) HistoryGetInclusive(ctx context.Context, arg HistoryGetInclusiveParams) ([]History, error)
- func (q *Queries) HistoryRemove(ctx context.Context, arg HistoryRemoveParams) error
- func (q *Queries) HistoryUpdateCategories(ctx context.Context, arg HistoryUpdateCategoriesParams) error
- func (q *Queries) HistoryUpdateOwner(ctx context.Context, arg HistoryUpdateOwnerParams) error
- func (q *Queries) UpdateHistoryRemoveFile(ctx context.Context, arg UpdateHistoryRemoveFileParams) error
- func (q *Queries) UserCategoryAdd(ctx context.Context, arg UserCategoryAddParams) error
- func (q *Queries) UserCategoryRemove(ctx context.Context, arg UserCategoryRemoveParams) error
- func (q *Queries) UserGet(ctx context.Context, username string) (User, error)
- func (q *Queries) UserUpdateHash(ctx context.Context, arg UserUpdateHashParams) error
- func (q *Queries) UserUpdateInstagramSession(ctx context.Context, arg UserUpdateInstagramSessionParams) error
- func (q *Queries) UserUser(ctx context.Context, arg UserUserParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateHistoryRemoveFileParams
- type User
- type UserCategoryAddParams
- type UserCategoryRemoveParams
- type UserUpdateHashParams
- type UserUpdateInstagramSessionParams
- type UserUserParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistoryAddParams ¶
type HistoryGetParams ¶
type HistoryRemoveParams ¶
type NetworkType ¶
type NetworkType string
const ( NetworkTypeInstagram NetworkType = "instagram" NetworkTypeTiktok NetworkType = "tiktok" NetworkTypeVsco NetworkType = "vsco" )
func (*NetworkType) Scan ¶
func (e *NetworkType) Scan(src interface{}) error
func (NetworkType) Valid ¶
func (e NetworkType) Valid() bool
type NullNetworkType ¶
type NullNetworkType struct { NetworkType NetworkType `json:"network_type"` Valid bool `json:"valid"` // Valid is true if NetworkType is not NULL }
func (*NullNetworkType) Scan ¶
func (ns *NullNetworkType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullPostType ¶
type NullPostType struct { PostType PostType `json:"post_type"` Valid bool `json:"valid"` // Valid is true if PostType is not NULL }
func (*NullPostType) Scan ¶
func (ns *NullPostType) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { HistoryAdd(ctx context.Context, arg HistoryAddParams) (History, error) HistoryGet(ctx context.Context, arg HistoryGetParams) (History, error) HistoryGetExclusive(ctx context.Context, arg HistoryGetExclusiveParams) ([]History, error) // https://docs.sqlc.dev/en/stable/howto/select.html#passing-a-slice-as-a-parameter-to-a-query // https://docs.sqlc.dev/en/stable/howto/named_parameters.html HistoryGetInclusive(ctx context.Context, arg HistoryGetInclusiveParams) ([]History, error) HistoryRemove(ctx context.Context, arg HistoryRemoveParams) error HistoryUpdateCategories(ctx context.Context, arg HistoryUpdateCategoriesParams) error HistoryUpdateOwner(ctx context.Context, arg HistoryUpdateOwnerParams) error UpdateHistoryRemoveFile(ctx context.Context, arg UpdateHistoryRemoveFileParams) error UserCategoryAdd(ctx context.Context, arg UserCategoryAddParams) error UserCategoryRemove(ctx context.Context, arg UserCategoryRemoveParams) error UserGet(ctx context.Context, username string) (User, error) UserUpdateHash(ctx context.Context, arg UserUpdateHashParams) error UserUpdateInstagramSession(ctx context.Context, arg UserUpdateInstagramSessionParams) error UserUser(ctx context.Context, arg UserUserParams) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) HistoryAdd ¶
func (*Queries) HistoryGet ¶
func (*Queries) HistoryGetExclusive ¶
func (*Queries) HistoryGetInclusive ¶
func (q *Queries) HistoryGetInclusive(ctx context.Context, arg HistoryGetInclusiveParams) ([]History, error)
https://docs.sqlc.dev/en/stable/howto/select.html#passing-a-slice-as-a-parameter-to-a-query https://docs.sqlc.dev/en/stable/howto/named_parameters.html
func (*Queries) HistoryRemove ¶
func (q *Queries) HistoryRemove(ctx context.Context, arg HistoryRemoveParams) error
func (*Queries) HistoryUpdateCategories ¶
func (q *Queries) HistoryUpdateCategories(ctx context.Context, arg HistoryUpdateCategoriesParams) error
func (*Queries) HistoryUpdateOwner ¶
func (q *Queries) HistoryUpdateOwner(ctx context.Context, arg HistoryUpdateOwnerParams) error
func (*Queries) UpdateHistoryRemoveFile ¶
func (q *Queries) UpdateHistoryRemoveFile(ctx context.Context, arg UpdateHistoryRemoveFileParams) error
func (*Queries) UserCategoryAdd ¶
func (q *Queries) UserCategoryAdd(ctx context.Context, arg UserCategoryAddParams) error
func (*Queries) UserCategoryRemove ¶
func (q *Queries) UserCategoryRemove(ctx context.Context, arg UserCategoryRemoveParams) error
func (*Queries) UserUpdateHash ¶
func (q *Queries) UserUpdateHash(ctx context.Context, arg UserUpdateHashParams) error
func (*Queries) UserUpdateInstagramSession ¶
func (q *Queries) UserUpdateInstagramSession(ctx context.Context, arg UserUpdateInstagramSessionParams) error
type UserCategoryAddParams ¶
type UserUpdateHashParams ¶
Click to show internal directories.
Click to hide internal directories.