collysqlite is a Go package providing an experimental work-in-progress prototype of an SQLite cache for Colly.
$ go get github.com/jimsmart/collysqlite
import "github.com/jimsmart/collysqlite"
- go-sqlite3 — database driver.
- sqlx —
database/sql
extensions. - Standard library.
- Ginkgo and Gomega if you wish to run the tests.
import "github.com/jimsmart/collysqlite"
cache := collysqlite.NewCache("./cache")
// TODO SetCache is a proposed method on colly.Collector that is currently unimplemented.
// c := colly.NewCollector()
// c.SetCache(cache)
// ...
GoDocs https://godoc.org/github.com/jimsmart/collysqlite
To run the tests execute go test
inside the project folder.
For a full coverage report, try:
$ go test -coverprofile=coverage.out && go tool cover -html=coverage.out
Package collysqlite is copyright 2018 by Jim Smart and released under the MIT License