sqlite

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLiteMigrator

func NewSQLiteMigrator(db *gorm.DB) *sqliteDBMigrator

Types

type SQLiteRepo

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

func NewSQLiteRepo

func NewSQLiteRepo(db *gorm.DB) (*SQLiteRepo, error)

func (*SQLiteRepo) Create

func (s *SQLiteRepo) Create(p models.Person) error

func (*SQLiteRepo) Delete

func (s *SQLiteRepo) Delete(domain string) error

func (*SQLiteRepo) ReadAll

func (s *SQLiteRepo) ReadAll() ([]models.Person, error)

func (*SQLiteRepo) Update

func (s *SQLiteRepo) Update(p models.Person) error

Jump to

Keyboard shortcuts

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