Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Make it scala friendly #100

Open
2 tasks done
harry-xi opened this issue Jan 31, 2025 · 0 comments
Open
2 tasks done

Feature: Make it scala friendly #100

harry-xi opened this issue Jan 31, 2025 · 0 comments
Labels

Comments

@harry-xi
Copy link
Contributor

harry-xi commented Jan 31, 2025

Is your feature request related to a problem?

In scala, it's almost impossible to create a field that looks public from java. So now everything in these APIs that involves POJO conversion is almost entirely unavailable in scala.

Describe the solution

Perhaps support for the javabean format is an option, scala has good support for this style. Or maybe consider just exposing some lower level API to allow passing in Value or other similar forms of converted objects directly in methods like create and insert. In this case scala users can provide a good scala experience by implementing these type conversions.

Alternative methods

Using the original query directly, but because queryBing is affected by type conversion (and its native implementation does not exist, it is not available in java too!), you have to face the problem of sql injection yourself. I also lost almost all of the other functionality that was already in this library.

SurrealDB version

2.1.4 for windows on x86_64

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant