Documentation ¶
Overview ¶
Package database manages the database used by the bot
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabase ¶
NewDatabase creates a new database. If database name is an empty string the default path will be used ("./storage/db.sqlite"), else it will be used as the path for the database file. If reset is true destroy the database before opening it (which will recreate it).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.