Liking cljdoc? Tell your friends :D

burningswell.db.countries


all

(all db & [opts])

Find all rows in db.

Find all rows in `db`.
raw docstring

as-png

(as-png db country & [opts])

Return the country as PNG.

Return the `country` as PNG.
raw docstring

by-airport-count

(by-airport-count db airport-count & [opts])

Find all rows in db by airport-count.

Find all rows in `db` by `airport-count`.
raw docstring

by-area

(by-area db area & [opts])

Find all rows in db by area.

Find all rows in `db` by `area`.
raw docstring

by-continent-id

(by-continent-id db continent-id & [opts])

Find all rows in db by continent-id.

Find all rows in `db` by `continent-id`.
raw docstring

by-created-at

(by-created-at db created-at & [opts])

Find all rows in db by created-at.

Find all rows in `db` by `created-at`.
raw docstring

by-fips-code

(by-fips-code db fips-code & [opts])

Find all rows in db by fips-code.

Find all rows in `db` by `fips-code`.
raw docstring

by-geom

(by-geom db geom & [opts])

Find all rows in db by geom.

Find all rows in `db` by `geom`.
raw docstring

by-geonames-id

(by-geonames-id db geonames-id & [opts])

Find all rows in db by geonames-id.

Find all rows in `db` by `geonames-id`.
raw docstring

by-id

(by-id db id & [opts])

Find all rows in db by id.

Find all rows in `db` by `id`.
raw docstring

by-iso-3166-1-alpha-2

(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`.
raw docstring

by-iso-3166-1-alpha-3

(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`.
raw docstring

by-iso-3166-1-numeric

(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`.
raw docstring

by-location

(by-location db location & [opts])

Find all rows in db by location.

Find all rows in `db` by `location`.
raw docstring

by-name

(by-name db name & [opts])

Find all rows in db by name.

Find all rows in `db` by `name`.
raw docstring

by-phone-prefix

(by-phone-prefix db phone-prefix & [opts])

Find all rows in db by phone-prefix.

Find all rows in `db` by `phone-prefix`.
raw docstring

by-photo-id

(by-photo-id db photo-id & [opts])

Find all rows in db by photo-id.

Find all rows in `db` by `photo-id`.
raw docstring

by-population

(by-population db population & [opts])

Find all rows in db by population.

Find all rows in `db` by `population`.
raw docstring

by-port-count

(by-port-count db port-count & [opts])

Find all rows in db by port-count.

Find all rows in `db` by `port-count`.
raw docstring

by-region-count

(by-region-count db region-count & [opts])

Find all rows in db by region-count.

Find all rows in `db` by `region-count`.
raw docstring

by-spot

(by-spot db spot)

Returns the country of spot from db.

Returns the country of `spot` from `db`.
raw docstring

by-spot-count

(by-spot-count db spot-count & [opts])

Find all rows in db by spot-count.

Find all rows in `db` by `spot-count`.
raw docstring

by-updated-at

(by-updated-at db updated-at & [opts])

Find all rows in db by updated-at.

Find all rows in `db` by `updated-at`.
raw docstring

by-user-count

(by-user-count db user-count & [opts])

Find all rows in db by user-count.

Find all rows in `db` by `user-count`.
raw docstring

closest

(closest db location & [distance])

Find the closest country to location.

Find the closest country to `location`.
raw docstring

country?

(country? x)

Return true if x is a country, otherwise false.

Return true if `x` is a country, otherwise false.
raw docstring

delete!

(delete! db record & [opts])

Delete the record from db.

Delete the `record` from `db`.
raw docstring

delete-all!

(delete-all! db records & [opts])

Delete all records from db.

Delete all `records` from `db`.
raw docstring

exists?

(exists? db record)

Returns true if the record exists in db, otherwise false.

Returns true if the `record` exists in `db`, otherwise false.
raw docstring

gen

(gen)
(gen db)

A generator that produces rows for the :countries table.

A generator that produces rows for the :countries table.
raw docstring

germany

(germany db)

Find the country Germany.

Find the country Germany.
raw docstring

indonesia

(indonesia db)

Find the country Indonesia.

Find the country Indonesia.
raw docstring

insert!

(insert! db record & [opts])

Insert record into the db.

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

insert-all!

(insert-all! db records & [opts])

Insert all records into the db.

Insert all `records` into the `db`.
raw docstring

save!

(save! db record & [opts])

Save record to db.

Save `record` to `db`.
raw docstring

save-all!

(save-all! db records & [opts])

Save all records to db.

Save all `records` to `db`.
raw docstring

(search db
        &
        [{:keys [continents direction distance except limit location
                 min-spots offset sort query],
          :as opts}])

Search countries.

Search countries.
raw docstring

select-batch

(select-batch db rows & [opts])

Select the batch of countries rows from table.

Select the batch of countries rows from table.
raw docstring

select-top-photos

(select-top-photos db)

Return the top photo for each country.

Return the top photo for each country.
raw docstring

spain

(spain db)

Find the country Spain.

Find the country Spain.
raw docstring

table

(table)

Returns the countries table.

Returns the countries table.
raw docstring

truncate!

(truncate! db & [opts])

Truncate the countries table.

Truncate the countries table.
raw docstring

united-states

(united-states db)

Find the country United States.

Find the country United States.
raw docstring

update!

(update! db record & [opts])

Update record in the db.

Update `record` in the `db`.
raw docstring

update-all!

(update-all! db records & [opts])

Update all records in the db.

Update all `records` in the `db`.
raw docstring

update-counters!

(update-counters! db)

Update the counters of all countries.

Update the counters of all countries.
raw docstring

update-photos!

(update-photos! db)

Update the photos of all countries.

Update the photos of all countries.
raw docstring

within-distance

(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`.
raw docstring

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

× close