Documentation
¶
Overview ¶
Package records is the first record source for `ds:table` (docs/SPEC.md §9.5): a directory of markdown files whose YAML frontmatter holds the fields. Every file is one record; its top-level `key: value` pairs are the columns, plus `path` and `title` (the first heading). SQLite and HTTP sources are adapters that return the same rows.
Index ¶
Constants ¶
View Source
const ( KeyKind = "kind" KeyWhere = "where" KeyCols = "cols" KeySort = "sort" KeyLimit = "limit" // Field names every record carries. FieldPath = "path" FieldTitle = "title" FieldKind = "kind" )
Query keys a `ds:table` passes (§9.5).
Variables ¶
View Source
var ( ErrBadWhere = errors.New("records: where= wants `field=value` or `field!=value` joined by ` and `") ErrBadLimit = errors.New("records: limit= must be a positive integer") )
Errors.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.