(absolute-path path)
Returns the absolute path of `path.
Returns the absolute path of `path.
(class-symbol table)
Convert table
into the type symbol.
Convert `table` into the type symbol.
(column-keyword column & [include-table?])
Return the column as keyword.
Return the column as keyword.
(columns-by-class class)
Return the columns of a table by it's class
.
Return the columns of a table by it's `class`.
(compact-map m)
Returns a map with all key/value pairs removed where the value of the pair is nil.
Returns a map with all key/value pairs removed where the value of the pair is nil.
(current-user)
Returns the USER environment variable.
Returns the USER environment variable.
(defn-memo fn-name & defn-stuff)
Just like defn, but memoizes the function using clojure.core/memoize
Just like defn, but memoizes the function using clojure.core/memoize
(edn-file-seq directory)
Returns a tree seq of Clojure files in directory
.
Returns a tree seq of Clojure files in `directory`.
(edn-file? path)
Returns true if path
is a EDN file, otherwise false.
Returns true if `path` is a EDN file, otherwise false.
(exec-sql-file db file)
Slurp file
and execute each line as a statement.
Slurp `file` and execute each line as a statement.
(fetch-batch stmt & [{:keys [size]}])
Return a lazy seq that fetches the result set of stmt
in batches
of size
.
Return a lazy seq that fetches the result set of `stmt` in batches of `size`.
(format-url db)
Format the db
spec as a URL.
Format the `db` spec as a URL.
(illegal-argument-exception format-message & format-args)
Throw an IllegalArgumentException with a formatted message.
Throw an IllegalArgumentException with a formatted message.
(immigrate & ns-names)
Create a public var in this namespace for each public var in the namespaces named by ns-names. The created vars have the same name, root binding, and metadata as the original except that their :ns metadata value is this namespace.
Create a public var in this namespace for each public var in the namespaces named by ns-names. The created vars have the same name, root binding, and metadata as the original except that their :ns metadata value is this namespace.
Make a new instance of class
using attrs
.
Make a new instance of `class` using `attrs`.
(make-instances db class records)
Convert all records
into instances of class
.
Convert all `records` into instances of `class`.
(parse-column s)
Parse the column s
and return a map with :schema, :table and :name keys.
Parse the column `s` and return a map with :schema, :table and :name keys.
(parse-params s)
Parse s
as a query string and return a hash map.
Parse `s` as a query string and return a hash map.
(parse-schema s)
Parse the schema s
and return a map with the :name key.
Parse the schema `s` and return a map with the :name key.
(parse-url url)
Parse the database url
and return a Ring compatible map.
Parse the database `url` and return a Ring compatible map.
(path-replace s match & [replacement])
Absolute path substitude match
in s
with replacement
.
Absolute path substitude `match` in `s` with `replacement`.
(path-split s)
Split s
at the file separator.
Split `s` at the file separator.
(qualified-name k)
Returns the qualified name of k
.
Returns the qualified name of `k`.
(record->row class record)
Convert the record into a row.
Convert the record into a row.
(resolve-class class)
Require the namespace of class
and resolve the class
in it.
Require the namespace of `class` and resolve the `class` in it.
(row->record class row)
Convert the row into a record.
Convert the row into a record.
(sql-stmt-seq reader)
Return a seq of SQL statements from reader
.
Return a seq of SQL statements from `reader`.
Return the table definition for class
.
Return the table definition for `class`.
(table-keyword table)
Return the schema qualified table
keyword.
Return the schema qualified `table` keyword.
(take-upto pred)
(take-upto pred coll)
Returns a lazy sequence of successive items from coll up to and including
the first item for which (pred item)
returns true.
Returns a lazy sequence of successive items from coll up to and including the first item for which `(pred item)` returns true.
(throw-sql-ex-info e sql)
Throw e
with sql
and the next exception in ex-data
.
Throw `e` with `sql` and the next exception in `ex-data`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close