Merge pull request '[agent/codex:gpt-5.4-mini] Read ~/spec/code/core/go/store/RFC.md fully. Find features d...' (#124) from agent/read---spec-code-core-go-store-rfc-md-fu into dev
This commit is contained in:
commit
23e67585de
1 changed files with 2 additions and 3 deletions
|
|
@ -95,9 +95,8 @@ func (storeInstance *Store) CommitToJournal(measurement string, fields map[strin
|
|||
}
|
||||
}
|
||||
|
||||
// Usage example: `result := storeInstance.QueryJournal(\`from(bucket: "store") |> range(start: -24h)\`)`
|
||||
// The query accepts Flux-shaped filters or a raw SQL statement against the
|
||||
// journal tables.
|
||||
// Usage example: `result := storeInstance.QueryJournal(\`from(bucket: "events") |> range(start: -24h) |> filter(fn: (r) => r.workspace == "session-a")\`)`
|
||||
// Usage example: `result := storeInstance.QueryJournal("SELECT measurement, committed_at FROM journal_entries ORDER BY committed_at")`
|
||||
func (storeInstance *Store) QueryJournal(flux string) core.Result {
|
||||
if err := storeInstance.ensureReady("store.QueryJournal"); err != nil {
|
||||
return core.Result{Value: err, OK: false}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue