sqlite

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDeleteFailed = errors.New("delete failed")

Functions

This section is empty.

Types

type Client

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

func New

func New(file string) (*Client, error)

func (*Client) DeleteNote

func (c *Client) DeleteNote(id int) error

func (*Client) GetNoteByID added in v0.0.7

func (c *Client) GetNoteByID(id int) (*notes.Note, error)

func (*Client) GetNoteByTitle added in v0.0.7

func (c *Client) GetNoteByTitle(title string) (*notes.Note, error)

func (*Client) InsertNote

func (c *Client) InsertNote(n notes.Note) (int, error)

func (*Client) ListNotes

func (c *Client) ListNotes() ([]notes.Note, error)

func (*Client) Ping added in v0.0.13

func (c *Client) Ping() error

func (*Client) UpdateNote

func (c *Client) UpdateNote(id int, note notes.Note) (int64, error)

Jump to

Keyboard shortcuts

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