(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.
(by-id db id)(by-id db table id)Returns the favourite by id.
Returns the favourite by `id`.
(create! db favourite)Insert the favourite into the db.
Insert the `favourite` into the `db`.
(create-continent! db author continent)Create a continent favourite.
Create a continent favourite.
(create-country! db author country)Create a country favourite.
Create a country favourite.
(create-region! db author region)Create a region favourite.
Create a region favourite.
(create-spot! db author spot)Create a spot favourite.
Create a spot favourite.
(delete! db favourite)Delete a favourite from db.
Delete a favourite from `db`.
(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.
(foreign-key type)Returns the table for type.
Returns the table for `type`.
(resolve-batch db favourites)(resolve-batch db table favourites)Resolve a batch of favourites.
Resolve a batch of favourites.
(resolve-favourite db author type entities)(resolve-user-favourites db users & [opts])(target db {:keys [id type] :as favourite})Returns the target of the favourite.
Returns the target of the favourite.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |