sqlite

package
v0.0.0-...-6a339a2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 4 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 {
	Db *sql.DB
}

func New

func New(cfg *config.Config) (*Sqlite, error)

func (*Sqlite) CreateStudent

func (s *Sqlite) CreateStudent(name string, email string, age int) (int64, error)

func (*Sqlite) DeleteStudent

func (s *Sqlite) DeleteStudent(id int64) error

func (*Sqlite) GetAllStudents

func (s *Sqlite) GetAllStudents() ([]map[string]interface{}, error)

func (*Sqlite) UpdateStudent

func (s *Sqlite) UpdateStudent(student types.Student) error

Jump to

Keyboard shortcuts

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