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

Design and Planning #3

Open
youyuanwu opened this issue Feb 16, 2021 · 7 comments
Open

Design and Planning #3

youyuanwu opened this issue Feb 16, 2021 · 7 comments

Comments

@youyuanwu
Copy link

This issue is to discuss the planning of the mongo vlang driver.

  • Currently the implementation is a wrapper around the mongo-c-driver. Is it the long term solution?
  • Are we planning to develop a native vlang driver? Like mongo-go-driver?
  • Even if we keep the wrapping the mongo-c-driver, do we want a vlang native bson library? Similar to https://github.com/mongodb/mongo-go-driver/tree/master/bson
  • How to handler marshal and unmarshal between bson and vlang struct?
@esquerbatua
Copy link
Contributor

esquerbatua commented Apr 5, 2021

  • Currently the implementation is a wrapper around the mongo-c-driver. Is it the long term solution?
    No
  • Are we planning to develop a native vlang driver? Like mongo-go-driver?
    I want to do it, but in the future
  • Even if we keep the wrapping the mongo-c-driver, do we want a vlang native bson library? Similar to https://github.com/mongodb/mongo-go-driver/tree/master/bson
    As the mongo driver, I want to do it, but in the future
  • How to handler marshal and unmarshal between bson and vlang struct?
    No idea by the moment

@youyuanwu
Copy link
Author

There should be a private v wrap functionality that has not yet been released yet. Once it is available, all the wrapping of C code should be generated rather than manually implemented. If you @esquerbatua can get the wrapping now from the vlang maintainer, you can speed up the c wrapping dev process.
Note that libsodium wrapper is auto generated: https://github.com/vlang/libsodium

@esquerbatua
Copy link
Contributor

There are a pending PR with more functions, and a WIP branch with native bson

@youyuanwu
Copy link
Author

I saw it, but I recommend generating all the C bindings. There are a lot more bindings in the c-driver's header file.

@hubyhuby
Copy link

Hello,
Any news update on the planning of the mongo feature ?
It would be nice to have example (tests) and installation procedure.
Really looking forward to be able to access mongodb within a V program.
For now I have not been unable to run the Mongodb example.

@esquerbatua
Copy link
Contributor

Hi @hubyhuby I'm waiting to have a more stable version of V, with submodules working as expected to have a large organization since the first release.

@esquerbatua
Copy link
Contributor

Hi @hubyhuby you have now more examples and installation process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants