db

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEntry

func AddEntry(guildID int, tableName, entry string) error

AddEntry adds a Row with Values guildID and entry to Table tableName.

func CreateTable

func CreateTable(tableName string) error

CreateTable creates tableName Table if it does not exist.

func InitDB

func InitDB() error

InitDB initializes the sqlite db.

func LookupEntry

func LookupEntry(guildID int, tableName string) (string, error)

LookupEntry returns the value of a row with a matching guildID from Table tablename.

func UpdateEntry

func UpdateEntry(guildID int, tableName, entry string) error

UpdateEntry updates a row entry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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