-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I am trying to access a monetdb-server on another machine in order to initiate a local embedded database with some initial values (C/C++).
However, the cache.c example accessing a remote database seems not to be up to date w.r.t the interface.
E.g. in
monetdbe_open(&remote, "monetdb://localhost:5000/sf1?user=monetdb&password=monetdb");
clearly a NULL is missing in the monetdbe_open(..., NULL) for the Option. However, adding the missing NULL does not seems to make the example work w.r.t be able to connect to the remote database.
Digging into the monetdbe.c, it seems to me like in order to force the monetdbe_open() to try to connect to a remote database, the remote-structure in the Option-structure needs to be filled in.
It would be of great help if you please could update the cache.c example and/or clarify how to connect to a remote named database.
If the option + remote struct has to be used: The remote struct seems to only have variable names for host, port, username, pw and language. How do one enter the database name ("sf1" in the cache-example or "demo" in the example below)?
To be specific, in the full monetdb-version we have e.g:
dbh = mapi_connect("192.168.1.21", 50000, "monetdb", "monetdb", "sql", "demo");
How would the equivalent monetdbe look like?