surrealdb / surrealdb.java

SurrealDB SDK for Java
https://surrealdb.com
Apache License 2.0
67 stars 21 forks source link

Feature: Handle UseMessage namespace/database/scope better than currently #70

Closed phughk closed 1 week ago

phughk commented 1 year ago

Is your feature request related to a problem?

Currently, the message request assumes that there is always a namespace and database specified. If a database is specified, but no namespace, then this will be accepted as valid when it shouldn't be. Furthermore scope isn't considered in the request.

Describe the solution

Handle parsing of parameters better so that the request list of params for the use method isn't illogical.

Alternative methods

None.

SurrealDB version

1.0.0-beta.9+20230821.0665e1b7

Contact Details

hugh@surrealdb.com

Is there an existing issue for this?

Code of Conduct

emmanuel-keller commented 1 week ago

Starting with 0.2.0, the API is now aligned with the usual SurrealDB clients. https://surrealdb.github.io/surrealdb.java/javadoc/com/surrealdb/Surreal.html