This checked project keeps every PostgreSQL repository call in one small server
module. server.dia demonstrates:
create,get,update, anddelete;- indexed filtered
select; - ordered
pageand matchingcursor; - authorized
countand integersum; - a configured relationship
join.
ui.dia shows generated RPC plus session.login, session.user, and
session.logout. diamond.toml shows the storage scopes, index,
reference, join, identity profile, module budgets, and RPC declaration that make
those calls available.
Check and build without opening PostgreSQL:
target/debug/diamond check examples/functions/relational/diamond.toml
target/debug/diamond build examples/functions/relational/diamond.toml \
--out .diamond/relational-functionsTo run it, create a disposable local PostgreSQL database and follow the
relational application setup. This source is a
method-focused gallery; the complete browser journey is
live-workspace.