database

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 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 Database

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

func (*Database) AddEvent

func (database *Database) AddEvent(event calendar.Event) (int, error)

func (*Database) CloseDatabase

func (database *Database) CloseDatabase() error

func (*Database) DeleteEventById

func (database *Database) DeleteEventById(id int) error

func (*Database) DeleteEventsByName

func (database *Database) DeleteEventsByName(name string) error

func (*Database) GetEventById

func (database *Database) GetEventById(id int) (*calendar.Event, error)

func (*Database) GetEventsByDate

func (database *Database) GetEventsByDate(date time.Time) ([]*calendar.Event, error)

func (*Database) GetLatestNote

func (database *Database) GetLatestNote() (string, error)

func (*Database) InitDatabase

func (database *Database) InitDatabase(path string) error

func (*Database) SaveNote

func (database *Database) SaveNote(content string) error

func (*Database) UpdateEventById

func (database *Database) UpdateEventById(id int, event *calendar.Event) error

func (*Database) UpdateEventByName

func (database *Database) UpdateEventByName(name string) error

Jump to

Keyboard shortcuts

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