sqlite

package
v0.0.0-...-acee299 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 5 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) GetStudentById

func (s *Sqlite) GetStudentById(id int64) (types.Student, error)

func (*Sqlite) GetStudentsList

func (s *Sqlite) GetStudentsList() ([]types.Student, error)

Jump to

Keyboard shortcuts

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