Documentation
¶
Overview ¶
Package db implements the database api for opkcat.
Index ¶
- type Entry
- type Handle
- func (h *Handle) Close() error
- func (h *Handle) IndexURL(opkurl string) error
- func (h *Handle) KnownURLs() ([]*URLFreshness, error)
- func (h *Handle) LastUpdated(opkurl string) (time.Time, string, error)
- func (h *Handle) MultiUpdateRecord(records []*Record) (int, error)
- func (h *Handle) Query(qry string) ([]*Record, error)
- func (h *Handle) UpdateRecord(rec *Record) error
- type Record
- type URLFreshness
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
Handle is a database handle. It can be used to read and write data concurrently.
func (*Handle) KnownURLs ¶
func (h *Handle) KnownURLs() ([]*URLFreshness, error)
func (*Handle) MultiUpdateRecord ¶
func (*Handle) UpdateRecord ¶
PutRecord will insert a record into the database. If the record already exist, it will be updated.
Click to show internal directories.
Click to hide internal directories.