-
-
Save brenopolanski/ec6205f75eed518397caff60f8a7b60b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var name = $(this.el).find("input[name='connname']").val(); | |
var path = $(this.el).find("select[name='csvpath']").val(); | |
var enabled = false; | |
if(schema.has.been.created){ | |
var mondrianschema = $(this.el).find(".schemaselect").val(); | |
enabled = true; | |
} | |
var c = "type=OLAP\n"+ | |
"name="+name+"\n"+ | |
"driver=mondrian.olap4j.MondrianOlap4jDriver\n"+ | |
"location=jdbc:mondrian:Jdbc=jdbc:calcite:model=csv:///etc/csvschema/"+schema+";Catalog=mondrian://"+mondrianschema+";JdbcDrivers=org.apache.calcite.jdbc.Driver;\n"+ | |
"enabled="+enabled+"\n"+ | |
"username=admin\n"+ | |
"password=admin"; | |
conn.set({"csv": c}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment