repository

package
v0.0.0-...-ab77e09 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DatabasePath = "internal/repository/film.sqlite"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewDatabase

func NewDatabase() *Database

func (Database) Create

func (db Database) Create(item interface{})

func (Database) Delete

func (db Database) Delete(item interface{}, conditions ...interface{})

func (Database) GetAll

func (db Database) GetAll(item interface{})

func (Database) GetWhere

func (db Database) GetWhere(item interface{}, query string, args ...string)

func (Database) Migrate

func (db Database) Migrate(item interface{})

type ICreate

type ICreate interface {
	Create(item interface{}, conditions ...interface{})
}

type IDelete

type IDelete interface {
	Delete()
}

type IGetAll

type IGetAll interface {
	GetAll(item interface{})
}

type IGetWhere

type IGetWhere interface {
	GetWhere(item interface{}, query string, args ...string)
}

type IMigrate

type IMigrate interface {
	Migrate()
}

Jump to

Keyboard shortcuts

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