database

package
v0.0.0-...-ea1d32c Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBDriver = "sqlite3"

Functions

This section is empty.

Types

type Database

type Database struct {
	DB *sqlx.DB
}

func New

func New() *Database

func (*Database) CreateEvent

func (s *Database) CreateEvent(event *model.Event) error

func (*Database) DeleteEvent

func (s *Database) DeleteEvent(id int64) error

func (*Database) GetEvent

func (s *Database) GetEvent(owner int64) []model.Event

func (*Database) GetEventByID

func (s *Database) GetEventByID(id int64) []model.Event

func (*Database) UpdateEvent

func (s *Database) UpdateEvent(event model.Event) error

Jump to

Keyboard shortcuts

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