Documentation
¶
Overview ¶
Package note provides access to the note table in the MySQL database.
Index ¶
- func Create(db Connection, name string, userID string) (sql.Result, error)
- func DeleteHard(db Connection, ID string, userID string) (sql.Result, error)
- func DeleteSoft(db Connection, ID string, userID string) (sql.Result, error)
- func Update(db Connection, name string, ID string, userID string) (sql.Result, error)
- type Connection
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteHard ¶
DeleteHard removes an item.
func DeleteSoft ¶
DeleteSoft marks an item as removed.
Types ¶
type Connection ¶
type Connection interface {
Exec(query string, args ...interface{}) (sql.Result, error)
Get(dest interface{}, query string, args ...interface{}) error
Select(dest interface{}, query string, args ...interface{}) error
}
Connection is an interface for making queries.
Click to show internal directories.
Click to hide internal directories.