Documentation
¶
Index ¶
- func InitializeSchema(dbPath string) error
- type Database
- func (db *Database) Close() error
- func (db *Database) CreateSnippet(snippet Snippet) (int64, error)
- func (db *Database) GetAllSnippets(snippets *[]Snippet) error
- func (db *Database) GetSnippetByID(id int) (Snippet, error)
- func (db *Database) SearchSnippets(keyword string) ([]Snippet, error)
- func (db *Database) UpdateSnippet(id int, snippet Snippet) error
- type Snippet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeSchema ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) GetAllSnippets ¶
func (*Database) SearchSnippets ¶
Click to show internal directories.
Click to hide internal directories.