Hello,

use:
connection = DriverManager.getConnection("jdbc:calcite:",getProperties());

in method getPropertied provide:
property *user* and *password*
property *inline* with your schema loaded from resource as a string.

Regards

On Fri, Oct 26, 2018 at 1:46 PM Shashwat Kumar <shashwatkmr....@gmail.com>
wrote:

> Hi,
>
> I am trying to bundle model.json file inside the Java Jar. However Calcite
> doesn't seem to have a way to provide path from resources folder, something
> like:
>
> connection =
> DriverManager.getConnection("jdbc:calcite:model=resource:model.json",
> "admin", "admin");
>
> It there some way to do so or some existing workaround?
>
>
> --
> Regards
> Shashwat Kumar
>


-- 
Piotr Bojko
http://about.me/ptr.bojko

Reply via email to