Liking cljdoc? Tell your friends :D

fluree.db.dbfunctions.fns


*clj/s

(* ?ctx & args)

Returns product of all the numbers in the sequence.

Returns product of all the numbers in the sequence.
raw docstring

+clj/s

(+ ?ctx & args)

Returns sum of each argument.

Returns sum of each argument.
raw docstring

-clj/s

(- ?ctx & args)

Returns difference of all the numbers in the sequence with the first number as the minuend.

Returns difference of all the numbers in the sequence with the first number as the minuend.
raw docstring

/clj/s

(/ ?ctx & args)

If no denominators are supplied, returns 1/numerator, else returns numerator divided by all of the denominators. Takes a sequence

If no denominators are supplied, returns 1/numerator, else returns numerator divided by all of the denominators. Takes a sequence
raw docstring

<clj/s

(< ?ctx & args)

Returns non-nil if nums are in monotonically increasing order, otherwise false.

Returns non-nil if nums are in monotonically increasing order, otherwise false.
raw docstring

<=clj/s

(<= ?ctx & args)

Returns non-nil if nums are in monotonically non-decreasing order, otherwise false.

Returns non-nil if nums are in monotonically non-decreasing order,
otherwise false.
raw docstring

==clj/s

(== ?ctx & args)

Return true if arguments in sequence equal each other.

Return true if arguments in sequence equal each other.
raw docstring

>clj/s

(> ?ctx & args)

Returns non-nil if nums are in monotonically decreasing order, otherwise false.

Returns non-nil if nums are in monotonically decreasing order, otherwise false.
raw docstring

>=clj/s

(>= ?ctx & args)

Returns non-nil if nums are in monotonically non-increasing order, otherwise false.

Returns non-nil if nums are in monotonically non-increasing order,
otherwise false.
raw docstring

?auth_idclj/s

(?auth_id ?ctx)

Gets current auth _id.

Gets current auth _id.
raw docstring

?oclj/s

(?o ?ctx)

Gets the object of an predicate from the current subject.

Gets the object of an predicate from the current subject.
raw docstring

?pclj/s

(?p ?ctx)
(?p ?ctx additional-select)

Gets current predicate predicates

Gets current predicate predicates
raw docstring

?pidclj/s

(?pid ?ctx)

Gets current predicate id

Gets current predicate id
raw docstring

?pOclj/s

(?pO ?ctx)

Gets the most recent object of an predicate, as of the previous block

Gets the most recent object of an predicate, as of the previous block
raw docstring

?sclj/s

(?s ?ctx)
(?s ?ctx additional-select)

Gets current subject.

Gets current subject.
raw docstring

?sidclj/s

(?sid ?ctx)

Gets current subject id

Gets current subject id
raw docstring

?user_idclj/s

(?user_id ?ctx)

Gets current user _id.

Gets current user _id.
raw docstring

andclj/s

(and ?ctx & args)

Returns true if all in a sequence are true, else returns false

Returns true if all in a sequence are true, else returns false
raw docstring

booleanclj/s

(boolean ?ctx x)

Coerce to boolean. Everything except false and nil is true.

Coerce to boolean. Everything except false and nil is true.
raw docstring

casclj/s

(cas ?ctx compare-val new-val)

Does a compare and set/swap operation as a transaction function.

Does a compare and set/swap operation as a transaction function.
raw docstring

ceilclj/s

(ceil ?ctx num)

Takes the ceiling of a number

Takes the ceiling of a number
raw docstring

contains?clj/s

(contains? ?ctx coll key)

countclj/s

(count ?ctx coll)

Returns the number of items in the collection. (count nil) returns 0. Also works on strings, arrays, and Java Collections and Maps

Returns the number of items in the collection. (count nil) returns 0.  Also works on strings, arrays, and Java Collections and Maps
raw docstring

decclj/s

(dec ?ctx n)

Decrements any number (or nil/null) by 1.

Decrements any number (or nil/null) by 1.
raw docstring

empty?clj/s

(empty? ?ctx arg)

True if empty or #{nil}, else false.

True if empty or #{nil}, else false.
raw docstring

extractclj/smacro

(extract v)

Resolves a value if a channel. Must be used inside of a go-block.

Resolves a value if a channel.
Must be used inside of a go-block.
raw docstring

flakesclj/s

(flakes ?ctx)

Gets the flakes from the current subject.

Gets the flakes from the current subject.
raw docstring

floorclj/s

(floor ?ctx num)

Takes the floor of a number

Takes the floor of a number
raw docstring

getclj/s

(get ?ctx subject pred)

Gets a value from an subject.

Gets a value from an subject.
raw docstring

get-allclj/s

(get-all ?ctx subject path)

Follows an subject down the provided path and returns a set of all matching subjects.

Follows an subject down the provided path and returns a set of all matching subjects.
raw docstring

get-inclj/s

(get-in ?ctx subject path)

hash-setclj/s

(hash-set ?ctx & args)

if-elseclj/s

(if-else ?ctx test t f)

Evaluates test.

Evaluates test.
raw docstring

incclj/s

(inc ?ctx n)

Increments any number (or nil/null) by 1.

Increments any number (or nil/null) by 1.
raw docstring

lower-caseclj/s

(lower-case ?ctx str)

Makes string lower case

Makes string lower case
raw docstring

maxclj/s

(max ?ctx & args)

Gets max value from a sequence.

Gets max value from a sequence.
raw docstring

max-pred-valclj/s

(max-pred-val ?ctx pred-name)

Finds the maximum predicate value.

Finds the maximum predicate value.
raw docstring

minclj/s

(min ?ctx & args)

Gets min value from a sequence.

Gets min value from a sequence.
raw docstring

modclj/s

(mod ?ctx n d)

Modulus of num and div. Truncates toward negative infinity.

Modulus of num and div. Truncates toward negative infinity.
raw docstring

nil?clj/s

(nil? ?ctx arg)

True if nil, else false.

True if nil, else false.
raw docstring

notclj/s

(not ?ctx arg)

Takes a boolean, true returns false, false returns true.

Takes a boolean, true returns false, false returns true.
raw docstring

not=clj/s

(not= ?ctx & args)

Returns true if two (or more) values are not equal.

Returns true if two (or more) values are not equal.
raw docstring

nowclj/s

(now ?ctx)

Returns current epoch milliseconds on the executing machine.

Returns current epoch milliseconds on the executing machine.
raw docstring

nthclj/s

(nth ?ctx coll key)

Returns the nth item in a collection

Returns the nth item in a collection
raw docstring

objFclj/s

(objF ?ctx)

Gets the summed object of all false flakes

Gets the summed object of all false flakes
raw docstring

objTclj/s

(objT ?ctx)

Gets the summed object of all true flakes

Gets the summed object of all true flakes
raw docstring

orclj/s

(or ?ctx & args)

Returns true if any in the sequence are true, else returns false

Returns true if any in the sequence are true, else returns false
raw docstring

queryclj/s

(query ?ctx query-map)
(query ?ctx select from where block limit)

Executes a query

Executes a query
raw docstring

quotclj/s

(quot ?ctx n d)

Quot[ient] of dividing numerator by denominator.

Quot[ient] of dividing numerator by denominator.
raw docstring

randclj/s

(rand ?ctx max)
(rand ?ctx max seed)

Returns a random number, seed is either provided or a we use the txn instant

Returns a random number, seed is either provided or a we use the txn instant
raw docstring

re-findclj/s

(re-find ?ctx pattern string)

Execute a re-find operation of regex pattern on provided string.

Execute a re-find operation of regex pattern on provided string.
raw docstring

relationship?clj/s

(relationship? ?ctx startSubject path endSubject)

Determines whether there is a relationship between two subjects

Determines whether there is a relationship between two subjects
raw docstring

remclj/s

(rem ?ctx n d)

Remainder of dividing numerator by denominator.

Remainder of dividing numerator by denominator.
raw docstring

stackclj/s

(stack ?ctx)

Returns the current stack.

Returns the current stack.
raw docstring

strclj/s

(str ?ctx & args)

Concatenates all in sequence.

Concatenates all in sequence.
raw docstring

subsclj/s

(subs ?ctx args)

Returns substring of a string with a start and optional end integer. Returned string is inclusive of start integer and exclusive of end integer.

Returns substring of a string with a start and optional end integer. Returned string is inclusive of start integer and exclusive of end integer.
raw docstring

upper-caseclj/s

(upper-case ?ctx str)

Makes string upper-case

Makes string upper-case
raw docstring

uuidclj/s

(uuid ?ctx)

Returns a random number, seed is either provided or a we use the txn instant

Returns a random number, seed is either provided or a we use the txn instant
raw docstring

valid-email?clj/s

(valid-email? ?ctx email)

Determines whether an email is valid, based on its pattern

Determines whether an email is valid, based on its pattern
raw docstring

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

× close