db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_NAME = "notes.sdb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TDb

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

func NewDb

func NewDb() *TDb

TDb constructor

func (*TDb) Init

func (t *TDb) Init(filename string)

Create database in file

func (*TDb) SaveNote

func (t *TDb) SaveNote(title string, note string) bool

Save a note

func (*TDb) SearchNote

func (t *TDb) SearchNote(text string) (*sql.Rows, bool)

search note by text, use fulltext search

Jump to

Keyboard shortcuts

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