modelsx

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package modelsx implements extensions for the models package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePronoun

func DeletePronoun(ctx context.Context, exec boil.ContextExecutor, sf, prn string) (string, bool, error)

func GetPronoun

func GetPronoun(ctx context.Context, exec boil.ContextExecutor, sf, prn string) (*models.Pronoun, error)

func PronounExists

func PronounExists(ctx context.Context, exec boil.ContextExecutor, sf, prn string) (bool, error)

func Pronouns

Types

type GuildWithPrefixes

type GuildWithPrefixes struct {
	ID                 int64             `boil:"id"`
	GuildSnowflake     string            `boil:"guild_snowflake"`
	EmbedTwitterVideos bool              `boil:"embed_twitter_videos"`
	CreatedAt          time.Time         `boil:"created_at"`
	UpdatedAt          time.Time         `boil:"updated_at"`
	Prefixes           types.StringArray `boil:"prefixes"`
}

func GetGuildWithPrefixes

func GetGuildWithPrefixes(ctx context.Context, exec boil.ContextExecutor, guildID string) (*GuildWithPrefixes, error)

func (*GuildWithPrefixes) HasPrefix

func (g *GuildWithPrefixes) HasPrefix(p string) bool

Jump to

Keyboard shortcuts

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