(by-content-disposition db content-disposition & [opts])
Find all rows in db
by content-disposition
.
Find all rows in `db` by `content-disposition`.
(by-content-length db content-length & [opts])
Find all rows in db
by content-length
.
Find all rows in `db` by `content-length`.
(by-content-md5 db content-md5 & [opts])
Find all rows in db
by content-md5
.
Find all rows in `db` by `content-md5`.
(by-content-type db content-type & [opts])
Find all rows in db
by content-type
.
Find all rows in `db` by `content-type`.
(by-created-at db created-at & [opts])
Find all rows in db
by created-at
.
Find all rows in `db` by `created-at`.
(by-dislikes db dislikes & [opts])
Find all rows in db
by dislikes
.
Find all rows in `db` by `dislikes`.
(by-height db height & [opts])
Find all rows in db
by height
.
Find all rows in `db` by `height`.
(by-id db id & [opts])
Find all rows in db
by id
.
Find all rows in `db` by `id`.
(by-likes db likes & [opts])
Find all rows in db
by likes
.
Find all rows in `db` by `likes`.
(by-location db location & [opts])
Find all rows in db
by location
.
Find all rows in `db` by `location`.
(by-source db source & [opts])
Find all rows in db
by source
.
Find all rows in `db` by `source`.
(by-source-url db source-url & [opts])
Find all rows in db
by source-url
.
Find all rows in `db` by `source-url`.
(by-spot db spot & [opts])
Return all photos of spot
from db
.
Return all photos of `spot` from `db`.
(by-status db status & [opts])
Find all rows in db
by status
.
Find all rows in `db` by `status`.
(by-storage-key db storage-key & [opts])
Find all rows in db
by storage-key
.
Find all rows in `db` by `storage-key`.
(by-title db title & [opts])
Find all rows in db
by title
.
Find all rows in `db` by `title`.
(by-updated-at db updated-at & [opts])
Find all rows in db
by updated-at
.
Find all rows in `db` by `updated-at`.
(by-url db url & [opts])
Find all rows in db
by url
.
Find all rows in `db` by `url`.
(by-user-and-url db user url)
Returns all photos by user
and url
.
Returns all photos by `user` and `url`.
(by-user-id db user-id & [opts])
Find all rows in db
by user-id
.
Find all rows in `db` by `user-id`.
(by-width db width & [opts])
Find all rows in db
by width
.
Find all rows in `db` by `width`.
(delete! db record & [opts])
Delete the record
from db
.
Delete the `record` from `db`.
(delete-all! db records & [opts])
Delete all records
from db
.
Delete all `records` from `db`.
(dislike! db user photo)
Dislike the given photo
as user
.
Dislike the given `photo` as `user`.
(exists? db record)
Returns true if the record
exists in db
, otherwise false.
Returns true if the `record` exists in `db`, otherwise false.
(gen)
(gen db)
A generator that produces rows for the :photos table.
A generator that produces rows for the :photos table.
(insert! db record & [opts])
Insert record
into the db
.
Insert `record` into the `db`.
(insert-all! db records & [opts])
Insert all records
into the db
.
Insert all `records` into the `db`.
(like! db user photo)
Like the given photo
as user
.
Like the given `photo` as `user`.
(photo? x)
Return true if x
is a photo, otherwise false.
Return true if `x` is a photo, otherwise false.
(save-all! db records & [opts])
Save all records
to db
.
Save all `records` to `db`.
(search db
&
[{:keys [direction distance except limit location offset sort users
query]
:as opts}])
Search photos.
Search photos.
(select-batch db rows & [opts])
Select the batch of photos rows from table.
Select the batch of photos rows from table.
(truncate! db & [opts])
Truncate the photos table.
Truncate the photos table.
(undislike! db user photo)
Un-dislike the given photo
as user
.
Un-dislike the given `photo` as `user`.
(unlike! db user photo)
Unlike the given photo
as user
.
Unlike the given `photo` as `user`.
(update! db record & [opts])
Update record
in the db
.
Update `record` in the `db`.
(update-all! db records & [opts])
Update all records
in the db
.
Update all `records` in the `db`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close