How to pass a json config object from Ceylon to JS ?

17 views
Skip to first unread message

Roger Gilliar

unread,
Nov 26, 2016, 3:06:50 PM11/26/16
to ceylon-users
I tried

dynamic {
   fromPool
= createPool({
           
"host"->"localhost",
           
"user"->"root",
           
"password"->"scala",
           
"database"->"fromdb"
   
});
}

But that doesn't seem to work.

Lucas Werkmeister

unread,
Nov 26, 2016, 3:10:26 PM11/26/16
to ceylon...@googlegroups.com

Try this:

dynamic {
   fromPool
= createPool(dynamic [
            host
= "localhost";
            user =
"root";
            password
= "scala";
            database
= "fromdb";
   
]);
}
--
You received this message because you are subscribed to the Google Groups "ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-users...@googlegroups.com.
To post to this group, send email to ceylon...@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/3aeb2804-afa2-471f-a068-d975596abdbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages