Hash :
5921de02
Author :
Thomas de Grivel
Date :
2024-10-08T02:20:03
%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)
true
Facts.add_tags(db, 4, 5, 6)
true
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)
true
Facts.with_tags(db, s = ?, p = ?, o = ?, fn (fact) { puts("#{s} #{p} #{o}") ; :ok })
1 2 3
4 5 6
7 8 9
:ok
Facts.remove_tags(db, 4, 5, 6)
true
Facts.with_tags(db, s = ?, p = ?, o = ?, fn (fact) { puts("#{s} #{p} #{o}") ; :ok })
1 2 3
7 8 9
:ok
Facts.delete(db)
void