0.29.1 — review-fix round on E3: RunOutput, sshKeyPath fallback, RunStreaming consolidation, signer cache, stderr in errors
This commit is contained in:
@@ -43,8 +43,6 @@ func formatCreateResult(slug, entityType string, res checkdefaults.Result) strin
|
||||
return fmt.Sprintf("Created %s (%s).%s", slug, entityType, formatCheckResult(res))
|
||||
}
|
||||
|
||||
// rowsToMap runs a SELECT key, value query and returns the result as a
|
||||
// map[string]any. Used by get_dashboard_summary to aggregate count queries.
|
||||
func rowsToMap(ctx context.Context, pool *db.Pool, query string, args ...any) map[string]any {
|
||||
m := map[string]any{}
|
||||
rows, err := pool.Query(ctx, query, args...)
|
||||
@@ -62,8 +60,6 @@ func rowsToMap(ctx context.Context, pool *db.Pool, query string, args ...any) ma
|
||||
return m
|
||||
}
|
||||
|
||||
// queryRowsJSONSingle runs a query and returns the rows as a parsed JSON array
|
||||
// of maps. Used by get_ontology to embed sub-queries into a structured result.
|
||||
func queryRowsJSONSingle(ctx context.Context, pool *db.Pool, query string, args ...any) []map[string]any {
|
||||
rows, err := pool.Query(ctx, query, args...)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user