Thanks Meikel, I tried the below stuff -
package com.codionics.flyway;
import clojure.lang.RT;
import clojure.lang.Var;
public class wrapper {
static final Var symbol = RT.var("clojure.core", "symbol");
static final Var require = RT.var("clojrue.core", "require");
static final Var keyword = RT.var("clojure.core", "keyword");
static final Var create = RT.var("lobos.core", "create");
static final Var table = RT.var("lobos.schema", "table*");
static final Var debuglevel = RT.var("lobos.core", "set-debug-level");
static Object db;
public static void createTable() {
try {
RT.load("lobos/core", true);
RT.load("lobos/schema", true);
db = RT.map(
keyword.invoke("classname"), "org.postgresql.Driver",
keyword.invoke("subprotocol"), "postgresql",
keyword.invoke("user"), "postgres",
keyword.invoke("password"), "lindb2011",
keyword.invoke("subname"), "//localhost:5432/flyway"
);
Object result = create.invoke(db,
table.invoke(keyword.invoke("music")));
System.out.println(result);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
};
}
and called wrapper.createTable() then I get - (#<core$create_STAR_
lobos.core$create_STAR_@49431028> (quote {:classname
"org.postgresql.Driver", :subprotocol "postgresql", :user "postgres",
:password "lindb2011", :subname "//localhost:5432/flyway"}))
I really don't understand the output, but it is definitely not what I am
expecting.
Please let me know.
Thanks Petr, I have gone through that link, and I'll try this approach if
the first one doesn't work.
Regards,
Manoj.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en