NxTIC/doc/storage.md

27 lines
443 B
Markdown
Raw Normal View History

2016-11-22 10:06:03 +00:00
### Notation
> lightdb `a` take the value `c` at key `b`
> "aL:b -> c"
### I. New subject survey
INPUT: id_subject, contacts[], relations[]
LIGHTDB: subjectL, contactL,
BEGIN
```
// initialisation des données du sujet (contact par name)
subjectL:id_subject -> [ ]
// On enregistre chaque contact
foreach contacts[] as i=>contact
contactL:uniqid -> contact[i]
subjectL:id_subject[contact[i].name] = uniqid++;
```
END