sql

package
v0.0.0-...-eb4b608 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Unlicense Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*sqlx.DB, error)

func NewAfkService

func NewAfkService(db *sqlx.DB) *afkService

func NewAllowService

func NewAllowService(chatService model.ChatService, userService model.UserService) (*allowService, error)

func NewBirthdayService

func NewBirthdayService(db *sqlx.DB) *birthdayService

func NewChatService

func NewChatService(db *sqlx.DB) *chatService

func NewChatsPluginsService

func NewChatsPluginsService(
	db *sqlx.DB,
	chatService model.ChatService,
	pluginService model.PluginService,
) *chatsPluginsService

func NewChatsUsersService

func NewChatsUsersService(db *sqlx.DB, chatService model.ChatService, userService model.UserService) *chatsUsersService

func NewCleverbotService

func NewCleverbotService(db *sqlx.DB) *cleverbotService

func NewCredentialService

func NewCredentialService(db *sqlx.DB) *credentialService

func NewFileService

func NewFileService(db *sqlx.DB) *fileService

func NewGeocodingService

func NewGeocodingService() *geocodingService

func NewGoogleImagesCleanupService

func NewGoogleImagesCleanupService(db *sqlx.DB) *googleImagesCleanupService

func NewGoogleImagesService

func NewGoogleImagesService(db *sqlx.DB) *googleImagesService

func NewHomeService

func NewHomeService(db *sqlx.DB) *homeService

func NewNotifyService

func NewNotifyService(db *sqlx.DB) *notifyService

func NewNullString

func NewNullString(s string) sql.NullString

func NewPluginService

func NewPluginService(db *sqlx.DB) *pluginService

func NewQuoteService

func NewQuoteService(db *sqlx.DB) *quoteService

func NewRKIService

func NewRKIService(db *sqlx.DB) *rkiService

func NewRandomService

func NewRandomService(db *sqlx.DB) *randomService

func NewReminderService

func NewReminderService(db *sqlx.DB) *reminderService

func NewUserService

func NewUserService(db *sqlx.DB) *userService

Types

type Image

type Image struct {
	QueryID    int64  `db:"query_id"`
	ImageURL   string `db:"image_url"`
	ContextURL string `db:"context_url"`
	GIF        bool   `db:"is_gif"`
}
func (i Image) ContextLink() string
func (i Image) ImageLink() string

func (Image) IsGIF

func (i Image) IsGIF() bool

type Location

type Location struct {
	PlaceId     int     `json:"place_id"`
	OsmType     string  `json:"osm_type"`
	OsmId       int     `json:"osm_id"`
	Lat         float32 `json:"lat,string"`
	Lng         float32 `json:"lon,string"`
	DisplayName string  `json:"display_name"`
	Category    string  `json:"category"`
	Type        string  `json:"type"`
}

Jump to

Keyboard shortcuts

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