Roenbaeck / bareclad

Based on transitional modeling, bareclad is a new type of database that provides features from relational, graph, columnar, and name-value pair databases.
http://www.bareclad.com
Other
17 stars 0 forks source link

Am I doing it right? #4

Open agoloborodko opened 1 year ago

agoloborodko commented 1 year ago

Hi Lars!

I was able to run bareclad and populate it with data, but search confused me a lot.

After executing example.tracula script, I was trying to query all names of people who was born at certain day:

search +p[{(+x, birth date)}, '1972-02-13', *],
         [{(x, name)}, +n, +t]
return
    n, t;

But result in console is empty:

Traqula file to run on startup: traqula/startup.traqula
Local variables: ["x"]
Local variables: ["x"]
Return recall: n
Return recall: t
Variables: {"x": ResultSet { mode: Empty, thing: None, multi: None }}

Also, I definitely see posits in bareclad.db with value of 1972-02-13.

So, am I doing it wrong? Is search already implemented?

agoloborodko commented 1 year ago

Maybe this is a clue. In sqlite database, I don't see things, that related to appearance sets.

For example, posit with id=13 refers to something with id=12, role=6 and id=11, role=5, but there are no such identifiers in Thing or Posit table.

image