ENH: Add minimal wrapping of libcaosdb's C interface
Loading
Add the first steps towards a Julia client basing on the Extern C interface of caosdb-cpplib. The client is able to connect to a server using SSL and retrieve the version of the server, see https://gitlab.indiscale.com/caosdb/customers/lfpb/management/-/issues/403.
All relevant modules are in src/CaosDB.jl
, the README_SETUP.md
has been updated accordingly.
Build and install caosdb-cpplib in the f-extern-c
branch and make the location of libccaosdb.so
known to Julia's ccall
, e.g., by adding it to your LD_LIBRARY_PATH
. Then start a CaosDB server in f-grpc-dev
, e.g., by using caosdb-deploy in f-grpc
.
Then, start julia with the --project
option from the caosdb-julialib directory, or, alternatively, start Julia and add CaosDB.jl by
julia> ]add "path/to/caosdb-julialib"
Establish a connection via
julia> using CaosDB
julia> CaosDB.Connection.connect(host="...", port="...", cacert="...", username="...", password="...")
You may omit some or all parameters in the call to CaosDB.Connection.connect
if the default values apply to you or if you defined the corresponding environmental variables.
Please, prepare your MR for a review. Be sure to write a summary and a focus and create gitlab comments for the reviewer. They should guide the reviewer through the changes, explain your changes and also point out open questions. For further good practices have a look at our review guidelines
For further good practices have a look at our review guidelines.