sqlite

package
v0.0.0-...-bf94844 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSchema

func CreateSchema(ctx context.Context, db *sqlx.DB) error

Types

type Sqlite

type Sqlite struct {
	// contains filtered or unexported fields
}

func New

func New(db *sqlx.DB) (sl *Sqlite)

func (*Sqlite) Close

func (sl *Sqlite) Close() error

func (Sqlite) Find

func (sl Sqlite) Find(ctx context.Context, limit int) ([]entity.Person, error)

func (Sqlite) FindOne

func (sl Sqlite) FindOne(ctx context.Context, id int64) (*entity.Person, error)

func (Sqlite) SavePerson

func (sl Sqlite) SavePerson(ctx context.Context, person entity.Person) (int64, error)

Jump to

Keyboard shortcuts

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