database

package
v0.0.0-...-e06fee5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllAuthors

func GetAllAuthors(db *sql.DB) ([]string, error)

func GetMissingAuthors

func GetMissingAuthors(db *sql.DB) ([]string, error)

func GetNewestMessageIdForChannel

func GetNewestMessageIdForChannel(db *sql.DB, channelId string) (string, error)

func GetOldestMessageIdForChannel

func GetOldestMessageIdForChannel(db *sql.DB, channelId string) (string, error)

func InsertChannel

func InsertChannel(db *sql.DB, channel *discordgo.Channel) error

func InsertEmoji

func InsertEmoji(db *sql.DB, emoji *discordgo.Emoji) error

func InsertMember

func InsertMember(db *sql.DB, user *discordgo.Member) error

func InsertMessage

func InsertMessage(db *sql.DB, message *discordgo.Message) error

func InsertThread

func InsertThread(db *sql.DB, thread *discordgo.Channel) error

func InsertUser

func InsertUser(db *sql.DB, user *discordgo.User) error

func Open

func Open(c *config.Config) (*sql.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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