Liking cljdoc? Tell your friends :D

conceptual.core


*aggr*clj


*db*clj


->persistent-mapclj

(->persistent-map m)

aggregatorclj

(aggregator)

apply-aggregator!clj

(apply-aggregator! aggr)

compact!clj

(compact!)
(compact! type)
(compact! db type)

compact-db!cljmultimethod


create-db!clj

(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.
raw docstring

dbclj

(db)

Returns a database instance if it exists.

Returns a database instance if it exists.
raw docstring

dumpclj

(dump)
(dump db)

id->keyclj

(id->key id)
(id->key db id)

Given and id returns the key.

Given and id returns the key.
raw docstring

identclj

(ident arg)
(ident db arg)

identsclj

(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
raw docstring

idsclj

(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.
raw docstring

ids->keysclj

(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.
raw docstring

init!clj

(init!)

insert!clj

(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.
raw docstring

insert-0!clj

(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
raw docstring

into-seqclj

(into-seq c)

invokeclj

(invoke key id)
(invoke db key id)

invokeiclj

(invokei id key)
(invokei db id key)

Reversed arguments from invoke.

Reversed arguments from invoke.
raw docstring

key->idclj

(key->id k)
(key->id db k)

Given a keyword identity returns the id.

Given a keyword identity returns the id.
raw docstring

key-idsclj

(key-ids key)
(key-ids db key)

Returns the keys for an concept key.

Returns the keys for an concept key.
raw docstring

keys->idsclj

(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.
raw docstring

load-pickle!clj

(load-pickle! &
              {:keys [filename type verbose cipher db]
               :or {filename "pickle.sz" type :default verbose false}})

lookupclj

(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.
raw docstring

lookup-idclj

(lookup-id unique-key key)
(lookup-id db unique-key key)

lookup-id-0clj

(lookup-id-0 unique-key-id key)
(lookup-id-0 db unique-key-id key)

max-idclj

(max-id)
(max-id db)

Returns the max id for the database.

Returns the max id for the database.
raw docstring

normalize-idsclj

(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.
raw docstring

nsnameclj

(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.
raw docstring

ordered-idsclj

(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.
raw docstring

pickle!clj

(pickle! & {:keys [db filename cipher] :or {filename "pickle.sz" db (db)}})

pickle-db!cljmultimethod


projclj

(proj ks ids)
(proj db ks ids)

proj-0clj

(proj-0 ks id)
(proj-0 db ks id)

projectclj

(project ks ids)
(project db ks ids)

project-mapclj

(project-map ks ids)
(project-map db ks ids)

replace!clj

(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.
raw docstring

replace-0!clj

(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.
raw docstring

replace-1!clj

(replace-1! db aggr id arg)

reset-pickle!clj

(reset-pickle! & args)

scanclj

(scan args)
(scan db args)

seekclj

(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.
raw docstring

unpickle-db!cljmultimethod


update!clj

(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.
raw docstring

update-0!clj

(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.
raw docstring

update-1!clj

(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.
raw docstring

update-2!clj

(update-2! db aggr id arg)

update-inline!clj

(update-inline! aggr id ks vs)
(update-inline! db aggr id ks vs)

valueclj

(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.
raw docstring

value-0clj

(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 ->>).
raw docstring

valueiclj

(valuei id key)
(valuei db id key)

Same as value, but the arguments are swapped.

Same as value, but the arguments are swapped.
raw docstring

with-aggrcljmacro

(with-aggr binding & bodies)

with-aggr-0cljmacro

(with-aggr-0 db binding & bodies)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close