Liking cljdoc? Tell your friends :D

chinook

Clojure data/edn version of the chinook database.

Extracts the data from the SQLite version of the database. For more info, see https://github.com/lerocha/chinook-database

Clojure data/edn version of the chinook database.

Extracts the data from the SQLite version of the database. For more info,
see https://github.com/lerocha/chinook-database
raw docstring

db-urlclj

The url to the copy of the SQLite db in the resources folder

The url to the copy of the SQLite db in the resources folder
raw docstring

dsclj

The datasource to the SQLite database in resources. Don't do any writes to this datasource.

The datasource to the SQLite database in resources. Don't do any writes
to this datasource.
raw docstring

ednclj

edn data from the chinook database as a map of vectors

edn data from the chinook database as a map of vectors
raw docstring

edn-with-setsclj

edn data from the chinook database as a map of sets

edn data from the chinook database as a map of sets
raw docstring

make-ednclj

(make-edn ds)
(make-edn ds to)
(make-edn ds to opts)

Creates a map of collections from the database. Default is a map of vectors in the shape of

{:genre [{:genre/genre-id 1 :genre/name "Rock"} {:genre/genre-id 2 :genre/name "Jazz"} {:genre/genre-id 3 :genre/name "Metal"}]}

but if you want another collection type for the table data (set, list, ...), you can provide an empty collection of that type as to.

Creates a map of collections from the database. Default is a map of vectors
in the shape of

  {:genre [{:genre/genre-id 1 :genre/name "Rock"}
           {:genre/genre-id 2 :genre/name "Jazz"}
           {:genre/genre-id 3 :genre/name "Metal"}]}


but if you want another collection type for the table data (set, list, ...),
you can provide an empty collection of that type as `to`.
raw docstring

schemaclj


table-dataclj

(table-data ds table-name)
(table-data ds table-name opts)

Extracts the table data for a given table. opts are the opts passed on to next-jdbc/execute! and can be used for changing the shape of the result set. Default opts is typical clojure kebab-maps.

Extracts the table data for a given table. opts are the opts passed on to
`next-jdbc/execute!` and can be used for changing the shape of the result set.
Default opts is typical clojure kebab-maps.
raw docstring

table-kclj


table-namesclj

(table-names ds)

Gets the table names from the database

Gets the table names from the database
raw docstring

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

× close