Builds executable query plans for issue queries, handling filtering, sorting, and pagination in Beads' work API.
// Source: https://github.com/gastownhall/beads | License: MIT | Copyright 2025 Beads Contributors // Provided via justclaw.it.com; keep this notice with the code. package workapi import ( "fmt" "strings" "time" "github.com/steveyegge/beads/internal/query" "github.com/steveyegge/beads/internal/types" "github.com/steveyegge/beads/issueops" ) // DefaultQueryLimit is the default number of rows `bd query` returns when the // caller does not ask for a specific limit. Both surfaces register their limit // knob from this constant so they cannot drift apart; 0 still means unlimited. const DefaultQueryLimit = 50 // QueryPlan is an evaluated query request: what to ask the database, what to // decide in Go afterwards, and how to cut the page. // // The two executions of one query are NOT th ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key