Liking cljdoc? Tell your friends :D

burningswell.db.favourites


author?

(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-id

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

Returns the favourite by id.

Returns the favourite by `id`.
raw docstring

create!

(create! db favourite)

Insert the favourite into the db.

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

create-continent!

(create-continent! db author continent)

Create a continent favourite.

Create a continent favourite.
raw docstring

create-country!

(create-country! db author country)

Create a country favourite.

Create a country favourite.
raw docstring

create-region!

(create-region! db author region)

Create a region favourite.

Create a region favourite.
raw docstring

create-spot!

(create-spot! db author spot)

Create a spot favourite.

Create a spot favourite.
raw docstring

delete!

(delete! db favourite)

Delete a favourite from db.

Delete a favourite from `db`.
raw docstring

favourite?

(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-key

(foreign-key type)

Returns the table for type.

Returns the table for `type`.
raw docstring

resolve-batch

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

Resolve a batch of favourites.

Resolve a batch of favourites.
raw docstring

resolve-favourite

(resolve-favourite db author type entities)

resolve-user-favourites

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

table

(table type)

Returns the table for type.

Returns the table for `type`.
raw docstring

target

(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