Liking cljdoc? Tell your friends :D

clj-liquibase.internal


add-default-valuecljmacro

(add-default-value cont default)

Add default value for a container object. (Meant for add-default-value change.) Arguments: cont The container object default The default value

Add default value for a container object.
(Meant for add-default-value change.)
Arguments:
  cont    The container object
  default The default value
sourceraw docstring

any-sqldate?clj

(any-sqldate? d)
source

as-coltypeclj

(as-coltype t & more)

Create column-type (string - subject to sp/db-iden). Examples: (coltype :int) => "INT" (coltype "BIGINT") => "BIGINT" (coltype :char 80) => "char(80)" (coltype :float 17 5) => "float(17, 5)" Note: This function is called during constructing column-config. See also: http://www.liquibase.org/documentation/column

Create column-type (string - subject to sp/db-iden).
Examples:
  (coltype :int)        => "INT"
  (coltype "BIGINT")  => "BIGINT"
  (coltype :char 80)    => "char(80)"
  (coltype :float 17 5) => "float(17, 5)"
Note: This function is called during constructing column-config.
See also: http://www.liquibase.org/documentation/column
sourceraw docstring

as-column-configclj

(as-column-config colname
                  coltype
                  &
                  {:keys [default-value default auto-increment autoinc remarks
                          nullable null primary-key pk primary-key-name pkname
                          primary-key-tablespace pktspace references refs unique
                          uniq unique-constraint-name ucname check
                          delete-cascade dcascade foreign-key-name fkname
                          initially-deferred idefer deferrable defer]})

Create column-configuration. This function is called by change/create-table. Arguments: colname (String/Keyword) column name - subject to db-iden coltype (String/Keyword/Vector) column type Optional arguments (can use either long/short name): Long name |Short name |Allowed types -----------------------|-----------|------------------------ :default-value |:default | String/Number/java.util.Date/Boolean/DatabaseFunction :auto-increment |:autoinc | Boolean :remarks | | String ;; constraints (s.t. = subject to) :nullable |:null | Boolean :primary-key |:pk | Boolean :primary-key-name |:pkname | String/Keyword - s.t. db-iden :primary-key-tablespace|:pktspace | String/Keyword - s.t. db-iden :references |:refs | String (Foreign key definition) :unique |:uniq | Boolean :unique-constraint-name|:ucname | String/Keyword - s.t. db-iden :check | | String :delete-cascade |:dcascade | Boolean :foreign-key-name |:fkname | String/Keyword - s.t. db-iden :initially-deferred |:idefer | Boolean :deferrable |:defer | Boolean Examples (when used inside 'change/create-table'): [:id :int :null false :pk true :autoinc true] [:name [:varchar 40] :null false] [:gender [:char 1] :null false] [:birth-date :date :null false] See also: as-coltype http://www.liquibase.org/documentation/column

Create column-configuration. This function is called by change/create-table.
Arguments:
  colname  (String/Keyword) column name - subject to db-iden
  coltype  (String/Keyword/Vector) column type
Optional arguments (can use either long/short name):
  Long name              |Short name |Allowed types
  -----------------------|-----------|------------------------
  :default-value         |:default   | String/Number/java.util.Date/Boolean/DatabaseFunction
  :auto-increment        |:autoinc   | Boolean
  :remarks               |           | String
  ;; constraints (s.t. = subject to)
  :nullable              |:null      | Boolean
  :primary-key           |:pk        | Boolean
  :primary-key-name      |:pkname    | String/Keyword - s.t. db-iden
  :primary-key-tablespace|:pktspace  | String/Keyword - s.t. db-iden
  :references            |:refs      | String (Foreign key definition)
  :unique                |:uniq      | Boolean
  :unique-constraint-name|:ucname    | String/Keyword - s.t. db-iden
  :check                 |           | String
  :delete-cascade        |:dcascade  | Boolean
  :foreign-key-name      |:fkname    | String/Keyword - s.t. db-iden
  :initially-deferred    |:idefer    | Boolean
  :deferrable            |:defer     | Boolean
Examples (when used inside 'change/create-table'):
  [:id         :int           :null false :pk true :autoinc true]
  [:name       [:varchar 40]  :null false]
  [:gender     [:char 1]      :null false]
  [:birth-date :date          :null false]
See also:
  as-coltype
  http://www.liquibase.org/documentation/column
sourceraw docstring

as-dbident-namesclj

(as-dbident-names names)

Return comma-separated name string for a given bunch of potentially Clojure-oriented names.

Return comma-separated name string for a given bunch of potentially
Clojure-oriented names.
sourceraw docstring

dbfn?clj

(dbfn? x)
source

if-nncljmacro

(if-nn arg & body)

Execute body if arg not nil

Execute body if arg not nil
sourceraw docstring

iso-date-strcljmacro

(iso-date-str date)

Generate ISO-Date string from the following types: java.sql.Date java.sql.Time java.sql.Timestamp

Generate ISO-Date string from the following types:
java.sql.Date
java.sql.Time
java.sql.Timestamp
sourceraw docstring

load-data-column-configclj

(load-data-column-config colname coltype & {:keys [index header]})

Return a new LoadDataColumnConfig instance from supplied arguments. Arguments: colname (keyword/String) column name coltype (keyword/String) either of STRING, NUMERIC, DATE, BOOLEAN Optional arguments: :index (Number) :header (Keyword/String) See also: http://www.liquibase.org/documentation/changes/load_data

Return a new LoadDataColumnConfig instance from supplied arguments.
Arguments:
  colname (keyword/String) column name
  coltype (keyword/String) either of STRING, NUMERIC, DATE, BOOLEAN
Optional arguments:
  :index  (Number)
  :header (Keyword/String)
See also:
  http://www.liquibase.org/documentation/changes/load_data
sourceraw docstring

new-column-valueclj

(new-column-value colname value)

Return a ColumnConfig instance with column name and value set.

Return a ColumnConfig instance with column name and value set.
sourceraw docstring

set-column-valuecljmacro

(set-column-value cont value)

Set column value for a container object. Arguments: cont The container object (e.g. ColumnConfig) value The column value

Set column value for a container object.
Arguments:
  cont  The container object (e.g. ColumnConfig)
  value The column value
sourceraw docstring

set-default-valuecljmacro

(set-default-value cont default)

Set default value for a container object. Arguments: cont The container object default The default value

Set default value for a container object.
Arguments:
  cont    The container object
  default The default value
sourceraw docstring

sqldateclj

(sqldate d)
source

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

× close