(apply-to-rollback! apply? visitor)
Specify whether a visitor should be applied to rollbacks. By default a visitor is not applied to rollbacks.
Specify whether a visitor should be applied to rollbacks. By default a visitor is not applied to rollbacks.
(for-contexts! contexts visitor)
Restrict visitor to specified contexts
only. By default a visitor applies
to all contexts.
Restrict visitor to specified `contexts` only. By default a visitor applies to all contexts.
(for-dbms! dbms visitor)
Restrict a visitor (that applies to all DBMS by default) to specified DBMS
list dbms
.
Restrict a visitor (that applies to all DBMS by default) to specified DBMS list `dbms`.
(make-append-visitor text)
Return visitor that appends text
to generated SQL.
Return visitor that appends `text` to generated SQL.
(make-prepend-visitor text)
Return visitor that prefixes generated SQL with text
.
Return visitor that prefixes generated SQL with `text`.
(make-replace-visitor needle new-text)
Return visitor that replaces needle
with text
in generated SQL. Note that
needle
can be either string or regex (java.util.regex.Pattern instance.)
Return visitor that replaces `needle` with `text` in generated SQL. Note that `needle` can be either string or regex (java.util.regex.Pattern instance.)
(make-visitors k v & args)
Return a list of visitors from a DSL-like fluent list of arguments. Example: (make-visitors :include (map (partial for-dbms! :mysql) (make-visitors :append "engine=InnoDB")) :append " -- creating table " :replace [:integer :bigint] :replace {:string "VARCHAR(256)" #"varchar*" "VARCHAR2"} :prepend "IF NOT EXIST")
Return a list of visitors from a DSL-like fluent list of arguments. Example: (make-visitors :include (map (partial for-dbms! :mysql) (make-visitors :append "engine=InnoDB")) :append " -- creating table " :replace [:integer :bigint] :replace {:string "VARCHAR(256)" #"varchar*" "VARCHAR2"} :prepend "IF NOT EXIST")
SQL visitor to enforce InnoDB storage engine on MySQL
SQL visitor to enforce InnoDB storage engine on MySQL
(visitor? v)
Return true if v
is an SqlVisitor, false otherwise.
Return true if `v` is an SqlVisitor, false otherwise.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close