Skip to content

collysqlite is a Go package providing an experimental work-in-progress prototype of an SQLite cache for Colly.

License

Notifications You must be signed in to change notification settings

jimsmart/collysqlite

Repository files navigation

collysqlite

collysqlite is a Go package providing an experimental work-in-progress prototype of an SQLite cache for Colly.

Installation

$ go get github.com/jimsmart/collysqlite
import "github.com/jimsmart/collysqlite"

Dependencies

  • go-sqlite3 — database driver.
  • sqlxdatabase/sql extensions.
  • Standard library.
  • Ginkgo and Gomega if you wish to run the tests.

Example

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)
// ...

Documentation

GoDocs https://godoc.org/github.com/jimsmart/collysqlite

Testing

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

License

Package collysqlite is copyright 2018 by Jim Smart and released under the MIT License

About

collysqlite is a Go package providing an experimental work-in-progress prototype of an SQLite cache for Colly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages