Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) CloseDatabase ¶
func (d *Database) CloseDatabase()
func (*Database) GetAllNumbers ¶
func (d *Database) GetAllNumbers() (map[string]NumberTable, error)
func (*Database) UpdateStatistics ¶
func (d *Database) UpdateStatistics(number NumberTable) error
type NumberTable ¶
type NumberTable struct { Number string `gorm:"column:number;primary_key"` Word string `gorm:"column:word;size:20"` Correct int `gorm:"column:correct;"` HasChanged bool `gorm:"-"` // ignore this field }
func (*NumberTable) TableName ¶
func (n *NumberTable) TableName() string
Click to show internal directories.
Click to hide internal directories.