sqlite

package
v0.0.0-...-5a8d1bd Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sqlite

type Sqlite struct {
	Database *sql.DB
}

func NewConnection

func NewConnection(path string) (*Sqlite, error)

func (*Sqlite) CreateSettingTable

func (s *Sqlite) CreateSettingTable() (err error)

func (*Sqlite) CreateWordTable

func (s *Sqlite) CreateWordTable() (err error)

func (*Sqlite) DeleteWordTable

func (s *Sqlite) DeleteWordTable(id int) error

func (*Sqlite) InsertWordTable

func (s *Sqlite) InsertWordTable(w *model.Dictinary) (err error)

func (*Sqlite) ListWordTable

func (s *Sqlite) ListWordTable() ([][]string, error)

func (*Sqlite) SelectSettingsTable

func (s *Sqlite) SelectSettingsTable() (*model.Settings, error)

func (*Sqlite) SelectWordTable

func (s *Sqlite) SelectWordTable(number int) (map[int]map[string]string, error)

func (*Sqlite) UpdateSettingsTable

func (s *Sqlite) UpdateSettingsTable(settings *model.Settings) (err error)

Jump to

Keyboard shortcuts

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