(as-png db country & [opts])
Return the country
as PNG.
Return the `country` as PNG.
(by-airport-count db airport-count & [opts])
Find all rows in db
by airport-count
.
Find all rows in `db` by `airport-count`.
(by-area db area & [opts])
Find all rows in db
by area
.
Find all rows in `db` by `area`.
(by-continent-id db continent-id & [opts])
Find all rows in db
by continent-id
.
Find all rows in `db` by `continent-id`.
(by-created-at db created-at & [opts])
Find all rows in db
by created-at
.
Find all rows in `db` by `created-at`.
(by-fips-code db fips-code & [opts])
Find all rows in db
by fips-code
.
Find all rows in `db` by `fips-code`.
(by-geom db geom & [opts])
Find all rows in db
by geom
.
Find all rows in `db` by `geom`.
(by-geonames-id db geonames-id & [opts])
Find all rows in db
by geonames-id
.
Find all rows in `db` by `geonames-id`.
(by-id db id & [opts])
Find all rows in db
by id
.
Find all rows in `db` by `id`.
(by-iso-3166-1-alpha-2 db iso-3166-1-alpha-2 & [opts])
Find all rows in db
by iso-3166-1-alpha-2
.
Find all rows in `db` by `iso-3166-1-alpha-2`.
(by-iso-3166-1-alpha-3 db iso-3166-1-alpha-3 & [opts])
Find all rows in db
by iso-3166-1-alpha-3
.
Find all rows in `db` by `iso-3166-1-alpha-3`.
(by-iso-3166-1-numeric db iso-3166-1-numeric & [opts])
Find all rows in db
by iso-3166-1-numeric
.
Find all rows in `db` by `iso-3166-1-numeric`.
(by-location db location & [opts])
Find all rows in db
by location
.
Find all rows in `db` by `location`.
(by-name db name & [opts])
Find all rows in db
by name
.
Find all rows in `db` by `name`.
(by-phone-prefix db phone-prefix & [opts])
Find all rows in db
by phone-prefix
.
Find all rows in `db` by `phone-prefix`.
(by-photo-id db photo-id & [opts])
Find all rows in db
by photo-id
.
Find all rows in `db` by `photo-id`.
(by-population db population & [opts])
Find all rows in db
by population
.
Find all rows in `db` by `population`.
(by-port-count db port-count & [opts])
Find all rows in db
by port-count
.
Find all rows in `db` by `port-count`.
(by-region-count db region-count & [opts])
Find all rows in db
by region-count
.
Find all rows in `db` by `region-count`.
(by-spot db spot)
Returns the country of spot
from db
.
Returns the country of `spot` from `db`.
(by-spot-count db spot-count & [opts])
Find all rows in db
by spot-count
.
Find all rows in `db` by `spot-count`.
(by-updated-at db updated-at & [opts])
Find all rows in db
by updated-at
.
Find all rows in `db` by `updated-at`.
(by-user-count db user-count & [opts])
Find all rows in db
by user-count
.
Find all rows in `db` by `user-count`.
(closest db location & [distance])
Find the closest country to location
.
Find the closest country to `location`.
(country? x)
Return true if x
is a country, otherwise false.
Return true if `x` is a country, otherwise false.
(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`.
(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 :countries table.
A generator that produces rows for the :countries 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`.
(page-views db country & [opts])
Returns the page views for country
.
Returns the page views for `country`.
(save-all! db records & [opts])
Save all records
to db
.
Save all `records` to `db`.
(search db
&
[{:keys [continents direction distance except limit location min-spots
offset sort query]
:as opts}])
Search countries.
Search countries.
(select-batch db rows & [opts])
Select the batch of countries rows from table.
Select the batch of countries rows from table.
(select-top-photos db)
Return the top photo for each country.
Return the top photo for each country.
(truncate! db & [opts])
Truncate the countries table.
Truncate the countries table.
(united-states db)
Find the country United States.
Find the country United States.
(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`.
(update-counters! db)
Update the counters of all countries.
Update the counters of all countries.
(update-photos! db)
Update the photos of all countries.
Update the photos of all countries.
(within-distance db location distance & [opts])
Return the countries in db
within distance
in km to location
.
Return the countries in `db` within `distance` in km to `location`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close