Define custom transformation to be done for a field.
Define custom transformation to be done for a field.
(to-keyword)
(to-keyword ns)
Return a transformation that converts read strings to keyword and back again. Optionally takes a namespace for the generated keywords.
Return a transformation that converts read strings to keyword and back again. Optionally takes a namespace for the generated keywords.
(transform transform)
Return a transform definition for the given Transform instance.
Return a transform definition for the given Transform instance.
(from-sql this sql-value)
Transform value from SQL result set. This is called before query returns a value.
Transform value from SQL result set. This is called before query returns a value.
(to-sql this transformed-value)
Transform value back to SQL for update or insert.
Transform value back to SQL for update or insert.
(transform-spec this input-spec)
Generate a spec for the transformed value. The input-spec is the spec that would be generated by default.
Generate a spec for the transformed value. The input-spec is the spec that would be generated by default.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close