Documentation ¶
Index ¶
- type Character
- type DBTX
- type Queries
- func (q *Queries) AddDropToken(ctx context.Context, userID corde.Snowflake) error
- func (q *Queries) Chars(ctx context.Context, userID corde.Snowflake) ([]discord.Character, error)
- func (q *Queries) CharsIDs(ctx context.Context, userID corde.Snowflake) ([]int64, error)
- func (q *Queries) CharsStartingWith(ctx context.Context, userID corde.Snowflake, s string) ([]discord.Character, error)
- func (q *Queries) Close() error
- func (q *Queries) ConsumeDropTokens(ctx context.Context, userID corde.Snowflake, count int32) (discord.User, error)
- func (q *Queries) DeleteChar(ctx context.Context, userID corde.Snowflake, charID int64) (discord.Character, error)
- func (q *Queries) GiveUserChar(ctx context.Context, dst corde.Snowflake, src corde.Snowflake, charID int64) error
- func (q *Queries) Profile(ctx context.Context, userID corde.Snowflake) (discord.Profile, error)
- func (q *Queries) PutChar(ctx context.Context, userID corde.Snowflake, c discord.Character) error
- func (q *Queries) SetChar(ctx context.Context, arg SetCharParams) (Character, error)
- func (q *Queries) SetUserAnilistURL(ctx context.Context, userID corde.Snowflake, url string) error
- func (q *Queries) SetUserDate(ctx context.Context, userID corde.Snowflake, d time.Time) error
- func (q *Queries) SetUserFavorite(ctx context.Context, userID corde.Snowflake, c int64) error
- func (q *Queries) SetUserQuote(ctx context.Context, userID corde.Snowflake, quote string) error
- func (q *Queries) SetUserToken(ctx context.Context, userID corde.Snowflake, token string) error
- func (q *Queries) Tx(fn func(s discord.Store) error) error
- func (q *Queries) User(ctx context.Context, userID corde.Snowflake) (discord.User, error)
- func (q *Queries) VerifyChar(ctx context.Context, userID corde.Snowflake, charID int64) (discord.Character, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SetCharParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddDropToken ¶
func (*Queries) CharsStartingWith ¶
func (q *Queries) CharsStartingWith(ctx context.Context, userID corde.Snowflake, s string) ([]discord.Character, error)
CharsStartingWith returns characters starting with the given string
func (*Queries) ConsumeDropTokens ¶
func (*Queries) DeleteChar ¶
func (*Queries) GiveUserChar ¶
func (*Queries) SetUserAnilistURL ¶
func (*Queries) SetUserDate ¶
SetUserDate sets the user's date
func (*Queries) SetUserFavorite ¶
SetUserFavorite sets the user's favorite
func (*Queries) SetUserQuote ¶
SetUserQuote sets the user's quote
func (*Queries) SetUserToken ¶
SetUserToken sets the user's token
func (*Queries) VerifyChar ¶
type SetCharParams ¶
Click to show internal directories.
Click to hide internal directories.