Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultDatabase = DatabaseSpec{Type: "sqlite", Path: "scrape_data/scrape.db"} ErrDatabaseFormat = errors.New("database spec must be in the format <type>:<path spec>") ErrUnsupportedDatabase = errors.New("unsupported database type") )
Functions ¶
func NewDatabaseValue ¶
func NewDatabaseValue(env string, def DatabaseSpec) *envflags.Value[DatabaseSpec]
Types ¶
type DatabaseSpec ¶
func NewDatabaseSpec ¶
func NewDatabaseSpec(s string) (DatabaseSpec, error)
Format: <type>:<path spec> Example: sqlite:scrape_data/scrape.db Example: sqlite::memory:
func (DatabaseSpec) String ¶
func (d DatabaseSpec) String() string
Click to show internal directories.
Click to hide internal directories.