Skip to content

Latest commit

 

History

History

relational

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Relational function example

This checked project keeps every PostgreSQL repository call in one small server module. server.dia demonstrates:

  • create, get, update, and delete;
  • indexed filtered select;
  • ordered page and matching cursor;
  • authorized count and integer sum;
  • 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-functions

To 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.