mysql

package
v0.0.0-...-77b124c Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NumberModel

type NumberModel struct {
	DB *sql.DB
}

func (*NumberModel) AllRecords

func (m *NumberModel) AllRecords() ([]*models.Number, error)

func (*NumberModel) Delete

func (m *NumberModel) Delete(id int) error

func (*NumberModel) Edit

func (m *NumberModel) Edit(name, phone string, id int) error

func (*NumberModel) Get

func (m *NumberModel) Get(id int) (*models.Number, error)

func (*NumberModel) Insert

func (m *NumberModel) Insert(name, phone string) (int, error)

func (*NumberModel) Search

func (m *NumberModel) Search(str1, str2 string) ([]*models.Number, error)

Jump to

Keyboard shortcuts

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