(->persistent-map m)
(aggregator)
(apply-aggregator! aggr)
(compact!)
(compact! type)
(compact! db type)
(create-db!)
Creates/resets db to a brand new database all bootstrapped and stuff.
Creates/resets *db* to a brand new database all bootstrapped and stuff.
(db)
Returns a database instance if it exists.
Returns a database instance if it exists.
(dump)
(dump db)
(id->key id)
(id->key db id)
Given and id returns the key.
Given and id returns the key.
(ident arg)
(ident db arg)
(idents aset)
(idents db aset)
Given a set i.e. has a :db/ids, returns the :db/key's for them
Given a set i.e. has a :db/ids, returns the :db/key's for them
(ids id)
(ids db id)
Shorthand method for {:db/ids (seek id)}. Given a the for a property/attribute returns the set of concepts having that property/attribute.
Shorthand method for {:db/ids (seek id)}. Given a the for a property/attribute returns the set of concepts having that property/attribute.
(ids->keys ids)
(ids->keys db ids)
Given a collection of ids returns a collection of keys.
Given a collection of ids returns a collection of keys.
(init!)
(insert! arg)
(insert! aggr arg)
(insert! db aggr arg)
Inserts into db. Must be a WritableDB. The key :db/id
, if specified in arg
, is ignored
and a new :db/id
will be added.
Inserts into db. Must be a WritableDB. The key `:db/id`, if specified in `arg`, is ignored and a new `:db/id` will be added.
(insert-0! ks vs)
(insert-0! aggr ks vs)
(insert-0! db aggr ks vs)
Inserts an array of values given an array of keys. Must be a WritableDB
Inserts an array of values given an array of keys. Must be a WritableDB
(into-seq c)
(invoke key id)
(invoke db key id)
(invokei id key)
(invokei db id key)
Reversed arguments from invoke.
Reversed arguments from invoke.
(key->id k)
(key->id db k)
Given a keyword identity returns the id.
Given a keyword identity returns the id.
(key-ids key)
(key-ids db key)
Returns the keys for an concept key.
Returns the keys for an concept key.
(keys->ids ks)
(keys->ids db ks)
Returns a sorted int array representing a collection of keywords.
Returns a sorted int array representing a collection of keywords.
(load-pickle! &
{:keys [filename type verbose cipher db]
:or {filename "pickle.sz" type :default verbose false}})
(lookup unique-key key)
(lookup db unique-key key)
Given the id for a concept returns a lazy Map for that concept.
Given the id for a concept returns a lazy Map for that concept.
(lookup-id unique-key key)
(lookup-id db unique-key key)
(lookup-id-0 unique-key-id key)
(lookup-id-0 db unique-key-id key)
(max-id)
(max-id db)
Returns the max id for the database.
Returns the max id for the database.
(normalize-ids ks)
(normalize-ids db ks)
Like keys->ids but does not eliminate duplicates or sort. This is useful for projections where the order of the projection matters.
Like keys->ids but does not eliminate duplicates or sort. This is useful for projections where the order of the projection matters.
(nsname k)
Given a keyword return the namespace/name string representation of the keyword. Not sure why this isn't in clojure core or at least a method of Keyword.
Given a keyword return the namespace/name string representation of the keyword. Not sure why this isn't in clojure core or at least a method of Keyword.
(ordered-ids ks)
(ordered-ids db ks)
Like keys->ids but does not eliminate duplicates or sort. This is useful for projections where the order of the projection matters.
Like keys->ids but does not eliminate duplicates or sort. This is useful for projections where the order of the projection matters.
(pickle! & {:keys [db filename cipher] :or {filename "pickle.sz" db (db)}})
(proj ks ids)
(proj db ks ids)
(proj-0 ks id)
(proj-0 db ks id)
(project ks ids)
(project db ks ids)
(project-map ks ids)
(project-map db ks ids)
(replace! arg)
(replace! aggr arg)
(replace! db aggr arg)
Given a map which contains either a :db/id or a :db/key will replace the concept with the new keys and values. NOTE: use replace! to be able to remove properties.
Given a map which contains either a :db/id or a :db/key will replace the concept with the new keys and values. NOTE: use replace! to be able to remove properties.
(replace-0! id ks vs)
(replace-0! aggr id ks vs)
(replace-0! db aggr id ks vs)
Updates an array of values given an array of keys.
Updates an array of values given an array of keys.
(replace-1! db aggr id arg)
(reset-pickle! & args)
(scan args)
(scan db args)
(seek id)
(seek db id)
Given the id for a concept returns a lazy Map for that concept.
Given the id for a concept returns a lazy Map for that concept.
(update! arg)
(update! aggr arg)
(update! db aggr arg)
Given a map which contains either a :db/id or a :db/key and value as well as the keys and values that need to added or updated, updates the concept. NOTE: use replace! to be able to remove keys.
Given a map which contains either a :db/id or a :db/key and value as well as the keys and values that need to added or updated, updates the concept. NOTE: use replace! to be able to remove keys.
(update-0! id k v)
(update-0! aggr id k v)
(update-0! db aggr id k v)
Lowest level update fn. Updates a single key/value in the concept. Expects an integer id, and an integer key.
Lowest level update fn. Updates a single key/value in the concept. Expects an integer id, and an integer key.
(update-1! id ks vs)
(update-1! aggr id ks vs)
(update-1! db aggr id ks vs)
Updates an array of values given an array of keys.
Updates an array of values given an array of keys.
(update-2! db aggr id arg)
(update-inline! aggr id ks vs)
(update-inline! db aggr id ks vs)
(value key id)
(value db key id)
Given a key and id returns the value for the key on the given id.
Given a key and id returns the value for the key on the given id.
(value-0 key id)
(value-0 db key id)
Lowest level interface to getValue. (swaps the order of id and key to better leverage the threading function ->>).
Lowest level interface to getValue. (swaps the order of id and key to better leverage the threading function ->>).
(valuei id key)
(valuei db id key)
Same as value, but the arguments are swapped.
Same as value, but the arguments are swapped.
(with-aggr binding & bodies)
(with-aggr-0 db binding & bodies)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close