-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: add toml double/float/int support #61
base: master
Are you sure you want to change the base?
Conversation
api/src/main/java/net/starype/quiz/api/database/ReadableRawMap.java
Outdated
Show resolved
Hide resolved
Like we discussed there is still an issue at a lower level that prevents us from being able to use anything but Strings, we have to investigate how to fix that |
You mean that internally we cannot store anything but strings? Which represents an non-optimized memory usage. I believe we aren't really doing a gigantic database and therefore such issues aren't really relevant |
No that's not the issue I'm referring to. By lower level, I meant in the code. The problem comes from |
This is the same issue. To store information we need to know how to store it. Like if i store a integer if will store 4 bytes. But i can also load this 4 bytes as if it was a string of 4 bytes. We therefore need to introduce a Varient type (type that can contain some objects such as Integer, String, etc...) and from there we will create a way to serialize/deserialize the Varient from the database. The issues with this approach are:
|
No description provided.