User Tools

Site Tools


Sidebar

Welcome to DIDO WIKI

dido:public:s_cli:05_contents:01_prt:06_dddl:aggregates

5.4 Aggregate

Return to DidoDLL

An Aggregate is when a new Smart Contract is created from a collection of other Smart Contracts and the originally Smart Contracts no longer exist as entities. For example, a can of soup is an aggregate of a can, tomatoes, salt, and other sices. Each of the original objects contained within a Smart Contract are not part of the can of soup.

CREATE  AGGREGATE CanOfSoup
      FROM  Tomatoes,
            Salt,
            Spice,
            Water,
            Onion,
            Butter,
            Oregano,
            Broth
     WHERE  Tomatoes.id = '$1' AND
            Salt.id = '$2' AND
            Spice.id = '$3' AND
            Water.id = '$4' AND
            Onion.id = '$5' AND
            Butter.id = '$6' AND
            Oregano.id = '$7' AND
            Broth.id = '$8'
     RECORD {"Tomatoes", Tomatoes.id} AND
            {"Salt", Salt.id} AND
            {"Spice", Spice.id} AND
            {"Water", Water.id} AND
            {"Onion", Onion.id} AND
            {"Butter", Butter.id} AND
            {"Oregano", Oregano.id} AND
            {"Broth", Broth.id}
            AS parents,     
            "Canning Factory Q, Assembly Line 1" AS process;   
dido/public/s_cli/05_contents/01_prt/06_dddl/aggregates.txt · Last modified: 2022/02/03 20:35 by 52.45.51.99
Translations of this page: