Page 1 of 1

MongoDB Driver

PostPosted: Thu Aug 23, 2018 5:42 pm
by ProRM
Hi,

I am trying to add a Mongodb driver in Servoy to connect to Mongodb. I have installed different jars from http://mongodb.github.io/mongo-java-driver/ but when I create a new connection in Database Server, that driver is not shown as an option.

Does anyone have worked with Mongodb in Servoy?

Regards

Re: MongoDB Driver

PostPosted: Thu Aug 23, 2018 8:21 pm
by ROCLASI
Hi Juan,

I am pretty sure that driver is not a JDBC driver (which is what Servoy requires).

If you want to use SQL to query MongoDB you can use PostgreSQL and a Foreign Data Wrapper (FDW). For instance this one.
This way you connect to PostgreSQL using the regular PostgreSQL driver and query (foreign) tables that are in MongoDB.

I believe even MongoDB's own "BI Connector" uses this approach.

More information on Foreign Data Wrappers:

Hope this helps.

Re: MongoDB Driver

PostPosted: Thu Aug 23, 2018 8:45 pm
by mboegem
Never used it, but this is on ServoyForge: https://www.servoyforge.net/projects/mongodb