Pudu programming language
Menu
API reference

Std.Db.Query.Shape.Refining

1 declaration

trait

Refining

This declaration names behavior that types can implement.

What it does

A query with one part changed, each answering the query rather than taking

it apart.

Written as methods so that a query built a clause at a time reads down the

page. As functions taking the query first, changing several things meant

wrapping each call in the next, and the result read inside out: the table

and the columns — the two things a reader looks for first — ended up

furthest in, and the shape on the page was the shape of the nesting rather

than the shape of the query. A method chain puts the clauses in the order

they are thought of, and the whole Select record stays available for the

queries a program knows in full.

Each answers a new query and leaves the one it was asked of alone, which is

what makes adding a clause in a loop safe: a search screen adds a filter for

each thing the reader typed and nothing else about the query moves.

Read the signature

  • This declaration has no value signature because it introduces a type or trait.

Back to Std.Db.Query.ShapeSearch related declarations