Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List tx = new ArrayList();
- tx.add(Util.map(":db/id", Peer.tempid(":db.part/user"),
- ":person/name", "FutureChild Suvee",
- ":person/parent", Peer.q("[:find ?person :where [?person :person/name \"Davy Suvee\"] ]", conn.db()).iterator().next().get(0)));
- System.out.println(Peer.q("[:find ?name ?ancestorname " +
- ":in $ % " +
- ":where [?person :person/name ?name] " +
- "[ancestor ?person ?ancestor] " +
- "[?ancestor :person/name ?ancestorname] ]" , conn.db().with(tx), ancestorrule));
Add Comment
Please, Sign In to add comment