Liking cljdoc? Tell your friends :D

burningswell.db.favourites


author?clj

(author? db favourite user)

Returns true of user is the author of favourite, otherwise false.

Returns true of `user` is the author of `favourite`, otherwise false.
raw docstring

by-idclj

(by-id db id)
(by-id db table id)

Returns the favourite by id.

Returns the favourite by `id`.
raw docstring

create!clj

(create! db favourite)

Insert the favourite into the db.

Insert the `favourite` into the `db`.
raw docstring

create-continent!clj

(create-continent! db author continent)

Create a continent favourite.

Create a continent favourite.
raw docstring

create-country!clj

(create-country! db author country)

Create a country favourite.

Create a country favourite.
raw docstring

create-region!clj

(create-region! db author region)

Create a region favourite.

Create a region favourite.
raw docstring

create-spot!clj

(create-spot! db author spot)

Create a spot favourite.

Create a spot favourite.
raw docstring

delete!clj

(delete! db favourite)

Delete a favourite from db.

Delete a favourite from `db`.
raw docstring

favourite?clj

(favourite? db author type {:keys [id]})

Returns true if the favourite for obj and type exists, otherwise false.

Returns true if the favourite for `obj` and `type` exists, otherwise false.
raw docstring

foreign-keyclj

(foreign-key type)

Returns the table for type.

Returns the table for `type`.
raw docstring

resolve-batchclj

(resolve-batch db favourites)
(resolve-batch db table favourites)

Resolve a batch of favourites.

Resolve a batch of favourites.
raw docstring

resolve-favouriteclj

(resolve-favourite db author type entities)

resolve-user-favouritesclj

(resolve-user-favourites db users & [opts])

tableclj

(table type)

Returns the table for type.

Returns the table for `type`.
raw docstring

targetclj

(target db {:keys [id type] :as favourite})

Returns the target of the favourite.

Returns the target of the favourite.
raw docstring

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

× close