Liking cljdoc? Tell your friends :D

clorum-core.discussions


allclj

(all db)

Returns all rows in the discussions table.

Returns all rows in the discussions table.
sourceraw docstring

createclj

(create db params)

Inserts a new discussion with the passed parameters, sanitizing blank author and category fields.

Inserts a new discussion with the passed parameters, sanitizing blank author and category fields.
sourceraw docstring

create-replyclj

(create-reply db params)

Inserts a new reply with the passed parameters, sanitizing blank author fields.

Inserts a new reply with the passed parameters, sanitizing blank author fields.
sourceraw docstring

db-userclj

source

deleteclj

(delete db id)

Deletes the discussion with the specified id along with its child replies.

Deletes the discussion with the specified id along with its child replies.
sourceraw docstring

getclj

(get db id)

Returns the discussion with the specified id.

Returns the discussion with the specified id.
sourceraw docstring

get-recentclj

(get-recent db n)

Returns the newest n discussions.

Returns the newest n discussions.
sourceraw docstring

get-repliesclj

(get-replies db parent)

Returns all rows in the replies table with the specified parent id.

Returns all rows in the replies table with the specified parent id.
sourceraw docstring

saveclj

(save db id params)

Updates the discussion with the specified id with the passed parameters.

Updates the discussion with the specified id with the passed parameters.
sourceraw docstring

verified?clj

source

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

× close