database

package
v0.0.0-...-0b5a40a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 3 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 NewDatabase

func NewDatabase(dbPath string) (*Database, error)

func (*Database) AddProject

func (d *Database) AddProject(name, path string) error

func (*Database) Close

func (d *Database) Close() error

func (*Database) GetRecentProjects

func (d *Database) GetRecentProjects(limit int) ([]Project, error)

func (*Database) UpdateProjectLastOpen

func (d *Database) UpdateProjectLastOpen(id int64) error

type Project

type Project struct {
	ID        int64
	Name      string
	Path      string
	LastOpen  time.Time
	CreatedAt time.Time
}

Jump to

Keyboard shortcuts

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