CrossClj

0.1.0 docs

SourceDocs



RECENT

    migratory

    Clojars

    Mar 6, 2014


    OWNER
    Brandon Bickford
    Portland, OR
    bickfordb@gmail.com

    Readme

    Index of all namespaces


    The README below is fetched from the published project artifact. Some relative links may be broken.

    migratory

    Clojure migration library

    Usage

    (ns my.project.migrations
      (:use migratory))
    
    (defmigrations migrations)
    
    (up add-account-table
      (do-sql "create account (id serial primary key, email text)"))
    
    (up add-gender-to-account
      (do-sql "alter table account add column gender text not null default 'male'"))
    
    ; main method
    (defn -main
     [& args]
     (migrate-up! :migrations migrations
                  :conn-spec {... jdbc connection spec ...}))
    
    

    License

    Copyright 2014 Brandon Bickford

    Distributed under the GNU GPL V3 or later