User Tools

Site Tools


Sidebar

Welcome to DIDO WIKI

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

This is an old revision of the document!


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" AS process;   
dido/public/s_cli/05_contents/01_prt/06_dddl/aggregates.1623784912.txt.gz · Last modified: 2021/06/15 15:21 by nick
Translations of this page: