Liking cljdoc? Tell your friends :D

clj-liquibase.sql-visitor


apply-to-rollback!clj

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

for-contexts!clj

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

for-dbms!clj

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

make-append-visitorclj

(make-append-visitor text)

Return visitor that appends text to generated SQL.

Return visitor that appends `text` to generated SQL.
sourceraw docstring

make-prepend-visitorclj

(make-prepend-visitor text)

Return visitor that prefixes generated SQL with text.

Return visitor that prefixes generated SQL with `text`.
sourceraw docstring

make-replace-visitorclj

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

make-visitorsclj

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

mysql-innodbclj

SQL visitor to enforce InnoDB storage engine on MySQL

SQL visitor to enforce InnoDB storage engine on MySQL
sourceraw docstring

visitor?clj

(visitor? v)

Return true if v is an SqlVisitor, false otherwise.

Return true if `v` is an SqlVisitor, false otherwise.
sourceraw docstring

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

× close