• (add-relation db name keys)
Adds a relation to the database

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/datalog/database.clj:81 top

(defn add-relation
  "Adds a relation to the database"
  [db name keys]
  (assoc db name (datalog-relation (set keys) #{} {})))
Vars in clojure.contrib.datalog.database/add-relation: assoc defn keys name set
Used in 0 other vars

Comments top

No comments for add-relation. Log in to add a comment.