Documentation ¶
Overview ¶
Database interaction package.
Index ¶
- Constants
- Variables
- func Begin() (*sqlx.Tx, error)
- func Close() error
- func Exec(query string, args ...interface{}) (sql.Result, error)
- func Get(dest interface{}, query string, args ...interface{}) error
- func GetBalance(id, guild string) int64
- func GetPrefix(id string) string
- func MustBegin() *sqlx.Tx
- func MustExec(query string, args ...interface{}) sql.Result
- func Query(query string, args ...interface{}) (*sql.Rows, error)
- func QueryRow(query string, args ...interface{}) *sql.Row
- func SetPrefix(guild, prefix string) error
- type Bot
- type Guild
- type Member
Constants ¶
View Source
const SCHEMA = `` /* 389-byte string literal not displayed */
SQL Queries to create the schemas.
Variables ¶
View Source
var DB *sqlx.DB
Functions ¶
func GetBalance ¶
Types ¶
type Bot ¶
type Bot struct { ID string `db:"id"` PSA struct { Text string `db:"text"` Date int64 `db:"date"` } `db:"psa"` }
func GetBotData ¶
Click to show internal directories.
Click to hide internal directories.