Hash :
ebc124b9
Author :
Thomas de Grivel
Date :
2024-09-29T22:39:35
%Fact{}
%Fact{subject: (Ptr) 0x0,
predicate: (Ptr) 0x0,
object: (Ptr) 0x0,
id: (Uw) 0}
db = Facts.database() ; void
void
Facts.add_tags(db, 1, 2, 3)
%FactW{subject: 1,
predicate: 2,
object: 3,
id: (Uw) 0}
Facts.add_tags(db, 4, 5, 6)
%FactW{subject: 4,
predicate: 5,
object: 6,
id: (Uw) 0}
Facts.with_tags(db, s = ?, p = ?, o = ?, fn (fact) { puts("#{s} #{p} #{o}") ; :ok })
1 2 3
4 5 6
:ok
Facts.add_tags(db, 7, 8, 9)
%FactW{subject: 7,
predicate: 8,
object: 9,
id: (Uw) 0}
Facts.with_tags(db, s = ?, p = ?, o = ?, fn (fact) { puts("#{s} #{p} #{o}") ; :ok })
1 2 3
4 5 6
7 8 9
:ok