Documentation
¶
Overview ¶
Database stuff.
Index ¶
- Constants
- func Finalize(db *sql.DB) (err error)
- func LoadCM(db *sql.DB) (sketch *countmin.Sketch, err error)
- func MakeDB(path string, overwrite bool, s *Settings) (db *sql.DB, err error)
- func MustPrepare(db *sql.DB, statement string) *sql.Stmt
- func ProcessRedirects(db *sql.DB, redirs map[string]string, verbose bool) error
- func StoreCM(db *sql.DB, sketch *countmin.Sketch) (err error)
- type Settings
Constants ¶
View Source
const DefaultMaxNGram = 7
XXX move this elsewhere
Variables ¶
This section is empty.
Functions ¶
func MustPrepare ¶
Prepares statement; panics on error.
func ProcessRedirects ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.