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
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
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.
edn data from the chinook database as a map of vectors
edn data from the chinook database as a map of vectors
edn data from the chinook database as a map of sets
edn data from the chinook database as a map of sets
(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`.
(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.
(table-names ds)
Gets the table names from the database
Gets the table names from the database
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close