문제

Looking into here I found the NUM data type is set as Double. How should I pass a 64bit Long value to rethinkdb ?

도움이 되었습니까?

해결책

Stealing the answer from the user group:

There's currently no good way to operate on anything except doubles in RethinkDB. (We'll probably add support for other numeric types in the future.)

If you just need to store and retrieve longs, you could store them as strings. If you know that you won't have any numbers over 2^53, it would also be safe to just store the long value as doubles.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top