(all db)
Returns all rows in the discussions table.
Returns all rows in the discussions table.
(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.
(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.
(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.
(get db id)
Returns the discussion with the specified id.
Returns the discussion with the specified id.
(get-recent db n)
Returns the newest n discussions.
Returns the newest n discussions.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close