Hello Nicolas,
Thanks for the quick reply.
About the naming, I can't say for sure but I think it'd be better if it's not in the lobos package. If a new person arrives at a project, "lobos" doesn't mean database immediately (maybe it will in the future). I like in Rails how directories are named after what they are and not the different libraries.
By migration generator you mean lobos.core/dump?
I wrote this simple migration:
(ns mgr.lobos.migrations
(:refer-clojure :exclude [alter defonce drop bigint boolean char double float time])
(:require lobos.connectivity)
(:use [lobos [migration :only [defmigration]] core schema]
lobos.config))
(defmigration create-admins
(up [] (create (table :users (integer :id :primary-key))))
(down [] (drop (table :users))))
and when I try to run it I get an error:
user=> (lobos.core/run)
java.util.IllegalFormatConversionException: d != java.lang.String (NO_SOURCE_FILE:0)
I think that's because I'm not passing the db argument to create and drop, is it?