First pass implementation of an SQLite backing store for fetched opportunities
This commit is contained in:
1 parent
9b0e6dccfe
commit
045492a148
29 files changed
+3132
-9
No files matched your search
@@ -0,0 +1,35 @@
|
||||
package config
|
||||
|
||||
import "reflect"
|
||||
|
||||
// JSCKDatabase is the database section's configuration key.
|
||||
const JSCKDatabase string = "database"
|
||||
|
||||
// JobSearchConfigDatabase configures the SQLite database. File is the path to
|
||||
// the database file.
|
||||
type JobSearchConfigDatabase struct {
|
||||
File string `cfg:"file"`
|
||||
}
|
||||
|
||||
// ---------- Section methods (see Section) ----------
|
||||
|
||||
// Keys returns the keys directly in the section.
|
||||
func (c *JobSearchConfigDatabase) Keys() []string { return keysOf(c) }
|
||||
|
||||
func (c JobSearchConfigDatabase) Map() map[string]any { return mapOf(c) }
|
||||
|
||||
func (c JobSearchConfigDatabase) Flatten() map[string]any {
|
||||
return flattenOf(JSCKDatabase, c)
|
||||
}
|
||||
|
||||
func (c JobSearchConfigDatabase) TypeOf(key string) (reflect.Kind, error) {
|
||||
return typeOf(c, key)
|
||||
}
|
||||
|
||||
func (c JobSearchConfigDatabase) ValueOf(key string) (any, error) {
|
||||
return valueOf(c, key)
|
||||
}
|
||||
|
||||
func (c *JobSearchConfigDatabase) SetValue(key string, value any) error {
|
||||
return setValue(c, key, value)
|
||||
}
|
||||
Reference in new issue
Block a user