Giter Site home page Giter Site logo

lmdb: Unsupported features about lmdb-go HOT 4 OPEN

bmatsuo avatar bmatsuo commented on May 21, 2024 2
lmdb: Unsupported features

from lmdb-go.

Comments (4)

bmatsuo avatar bmatsuo commented on May 21, 2024

Passing a pointer to the mdb_set_userctx function violates the cgo tool restrictions mentioned in #10.

C code must not store any Go pointers into Go memory, even temporarily.

This makes use of the function very dubious. Storing a size_t integer value as user context does not seem very useful.

from lmdb-go.

bmatsuo avatar bmatsuo commented on May 21, 2024

I don't plan on implementing mdb_env_set_assert.

This hack should become obsolete as lmdb's error handling matures.

In my own experience its use has not been desired. And if it were to be supported there would be implementation issues. I'm just going to wait for further development.

from lmdb-go.

bmatsuo avatar bmatsuo commented on May 21, 2024

I have opened #12 to track the attempt at supporting mdb_set_compare and mdb_set_dupsort, at first in a primitive form to be expanded later when support is added to the C API.

from lmdb-go.

bmatsuo avatar bmatsuo commented on May 21, 2024

Re: mdb_set_relfunc/mdb_set_relctx

This feature is not implemented yet in LMDB

Currently the relocation feature is unimplemented and setting this function has no effect.

It looks like its technically possible to bind the API, though. The ctx function would likely have to be co-opted as is done for mdb_reader_list.

Though I don't have a good understanding of when this would be usable or if Go is usable in such environments. And the feature really shouldn't be implemented until there is some understanding of that.

from lmdb-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.