sql

package
v0.0.0-...-e0d5016 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Unlicense Imports: 21 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 NewBraveImagesCleanupService

func NewBraveImagesCleanupService(db *sqlx.DB) *braveImagesCleanupService

func NewBraveImagesService

func NewBraveImagesService(db *sqlx.DB) *braveImagesService

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 NewGPTService

func NewGPTService(db *sqlx.DB) *gptService

func NewGelbooruCleanupService

func NewGelbooruCleanupService(db *sqlx.DB) *gelbooruCleanupService

func NewGelbooruService

func NewGelbooruService(db *sqlx.DB) *gelbooruService

func NewGeminiService

func NewGeminiService(db *sqlx.DB) *geminiService

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 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         float64 `json:"lat,string"`
	Lng         float64 `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