queries

package
v0.0.0-...-bcbc1e1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommission

func GetCommission(orm *orm.ORM, id uuid.UUID) (*models.Commission, error)

GetCommission returns the commission with the provided ID

func GetCommissionedMini

func GetCommissionedMini(orm *orm.ORM, id uuid.UUID) (*models.CommissionedMini, error)

GetCommissionedMini returns the commissioned mini with the given id

func GetCommissionedMinis

func GetCommissionedMinis(orm *orm.ORM, id uuid.UUID) ([]*models.CommissionedMini, error)

GetCommissionedMinis returns the minis associated with a commission

func GetGame

func GetGame(orm *orm.ORM, id uuid.UUID) (*models.Game, error)

GetGame returns the first Game record with matching ID

func GetGameMini

func GetGameMini(orm *orm.ORM, id uuid.UUID) (*models.GameMini, error)

GetGameMini returns the first GameMini record with matching ID

func GetGameMinis

func GetGameMinis(orm *orm.ORM, id uuid.UUID) ([]*models.GameMini, error)

GetGameMinis returns all GameMini records associated with the given Game ID

func GetGames

func GetGames(orm *orm.ORM) ([]*models.Game, error)

GetGames returns an alpha sorted collection of Games

func GetMiniConfig

func GetMiniConfig(orm *orm.ORM, mini *models.GameMini, user *models.User) (*models.MiniConfig, error)

GetMiniConfig gets a single MiniConfig for the given ID

func GetMiniConfigs

func GetMiniConfigs(orm *orm.ORM, user *models.User) ([]*models.MiniConfig, error)

GetMiniConfigs gets MiniConfig records from the DB for the given user

func GetMyCommissions

func GetMyCommissions(orm *orm.ORM, id uuid.UUID) ([]*models.Commission, error)

GetMyCommissions returns commissions where the supplied user is either the artist or the patron

func GetUser

func GetUser(orm *orm.ORM, id uuid.UUID) (*models.User, error)

GetUser retrieves a User record for the given ID

func GetUserWithEmail

func GetUserWithEmail(orm *orm.ORM, email string) (*models.User, error)

GetUserWithEmail returns the DB model for a User for the given email

func GetUserWithNickname

func GetUserWithNickname(orm *orm.ORM, nickName string) (*models.User, error)

GetUserWithNickname returns the DB model for a User for the given nickname

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL