ryanjdew / go-marklogic-go

A Golang REST Client library for MarkLogic
Other
6 stars 4 forks source link

Support for database parameter? #5

Open jimrobinson opened 5 years ago

jimrobinson commented 5 years ago

Hopefully I'm not missing it, but it appears as though this library doesn't support the 'database' parameter. The documentation from MarkLogic seems to indicate the use is supported, though perhaps not encouraged:

From https://docs.marklogic.com/guide/rest-dev/intro#id_90072 I see: "Each REST API instance has a default content database associated with. You specify this database when you create the instance, and it cannot be changed subsequently. However, many REST Client API methods support a database parameter with which you can select a different content database on a per request basis."

ryanjdew commented 5 years ago

The REST API does often support the database parameter for many cases. This is more of a side project that I haven't worked on for a little while and would like to get back to.

Passing the database parameter as part of the client creation would be a good enhancement.