Liking cljdoc? Tell your friends :D

datumbazo.util


absolute-pathclj

(absolute-path path)

Returns the absolute path of `path.

Returns the absolute path of `path.
sourceraw docstring

cast-typeclj

(cast-type {:keys [type] :as column})

Returns the cast type for column.

Returns the cast type for `column`.
sourceraw docstring

class-symbolclj

(class-symbol table)

Convert table into the type symbol.

Convert `table` into the type symbol.
sourceraw docstring

column-keywordclj

(column-keyword column & [include-table?])

Return the column as keyword.

Return the column as keyword.
sourceraw docstring

columns-by-classclj

(columns-by-class class)

Return the columns of a table by it's class.

Return the columns of a table by it's `class`.
sourceraw docstring

compact-mapclj

(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.
sourceraw docstring

current-userclj

(current-user)

Returns the USER environment variable.

Returns the USER environment variable.
sourceraw docstring

defn-memocljmacro

(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
sourceraw docstring

edn-file-seqclj

(edn-file-seq directory)

Returns a tree seq of Clojure files in directory.

Returns a tree seq of Clojure files in `directory`.
sourceraw docstring

edn-file?clj

(edn-file? path)

Returns true if path is a EDN file, otherwise false.

Returns true if `path` is a EDN file, otherwise false.
sourceraw docstring

exec-sql-fileclj

(exec-sql-file db file)

Slurp file and execute each line as a statement.

Slurp `file` and execute each line as a statement.
sourceraw docstring

fetch-batchclj

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

format-serverclj

(format-server url)
source

format-urlclj

(format-url db)

Format the db spec as a URL.

Format the `db` spec as a URL.
sourceraw docstring

illegal-argument-exceptionclj

(illegal-argument-exception format-message & format-args)

Throw an IllegalArgumentException with a formatted message.

Throw an IllegalArgumentException with a formatted message.
sourceraw docstring

immigrateclj

(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.
sourceraw docstring

invoke-constructorclj

(invoke-constructor clazz & args)
source

library-loaded?cljmultimethod

source

make-instancecljmultimethod

Make a new instance of class using attrs.

Make a new instance of `class` using `attrs`.
sourceraw docstring

make-instancesclj

(make-instances db class records)

Convert all records into instances of class.

Convert all `records` into instances of `class`.
sourceraw docstring

parse-columnclj

(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.
sourceraw docstring

parse-paramsclj

(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.
sourceraw docstring

parse-schemaclj

(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.
sourceraw docstring

parse-urlclj

(parse-url url)

Parse the database url and return a Ring compatible map.

Parse the database `url` and return a Ring compatible map.
sourceraw docstring

path-replaceclj

(path-replace s match & [replacement])

Absolute path substitude match in s with replacement.

Absolute path substitude `match` in `s` with `replacement`.
sourceraw docstring

path-splitclj

(path-split s)

Split s at the file separator.

Split `s` at the file separator.
sourceraw docstring

qualified-nameclj

(qualified-name k)

Returns the qualified name of k.

Returns the qualified name of `k`.
sourceraw docstring

record->rowclj

(record->row class record)

Convert the record into a row.

Convert the record into a row.
sourceraw docstring

resolve-classclj

(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.
sourceraw docstring

row->recordclj

(row->record class row)

Convert the row into a record.

Convert the row into a record.
sourceraw docstring

slurp-sqlclj

(slurp-sql file)
source

sql-stmt-seqclj

(sql-stmt-seq reader)

Return a seq of SQL statements from reader.

Return a seq of SQL statements from `reader`.
sourceraw docstring

table-by-classcljmultimethod

Return the table definition for class.

Return the table definition for `class`.
sourceraw docstring

table-keywordclj

(table-keyword table)

Return the schema qualified table keyword.

Return the schema qualified `table` keyword.
sourceraw docstring

take-uptoclj

(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.
sourceraw docstring

throw-sql-ex-infoclj

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

with-library-loadedcljmacro

(with-library-loaded library & body)
source

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

× close