You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
With option (1.), how should the case be handled when then database returns a value that is to big? Throw an error, return -1, or just return whatever napi_create_int64 gives (essentially using option 2. as fallback)?
With option (1.), how should the case be handled when then database returns a value that is to big? Throw an error, return -1, or just return whatever napi_create_int64 gives (essentially using option 2. as fallback)?
Return whatever napi_create_int64 gives. Because as you pointed out, the db size already is approximate. And if you have a database that big, I'm not sure LevelDB is the right fit anyway.
Currently the binding for approximateSize stores the result as
uint32
(leveldown/binding.cc
Line 1036 in e1c3463
It would be nice if approximateSize could either
Number.isSafeInteger()
,BitInt
, orNot sure, which of the options would be best.
The text was updated successfully, but these errors were encountered: