database

package
v0.0.0-...-7554295 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() *sql.DB

creates a SQL connection via go-sqlite3 connector and returns it

func GetAllWords

func GetAllWords() []models.WordModel

This function returns all words in table `words` as type []models.WordModel

func GetAllWordsOfGuild

func GetAllWordsOfGuild(guildID string) []models.WordModel

This function returns all words of a specific guild in table `words` as type []models.WordModel

func GetWordsByUserAndGuildID

func GetWordsByUserAndGuildID(userID string, guildID string) []models.WordModel

func InitDatabase

func InitDatabase()

Initializes all database tables and checks if they are already existing

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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