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

Native Reason support #20

Open
baransu opened this issue Oct 31, 2019 · 8 comments
Open

Native Reason support #20

baransu opened this issue Oct 31, 2019 · 8 comments

Comments

@baransu
Copy link

baransu commented Oct 31, 2019

As described in the documentation, this library currently is built with BuckleScript in mind. I'm exploring native Reason database libraries and this seams as a perfect fit as most of the abstract are not tight to BuckleScript besides Belt. and Js. modules. It should be fairly easy to extract into shared package (https://tech.ahrefs.com/how-to-write-a-library-for-bucklescript-and-native-22f45e5e946d).

@adnelson
Copy link
Owner

adnelson commented Nov 1, 2019

One barrier is that I have quite a lot of random junk in Utils.re which relies on Belt. the query builder and rendering parts would be relatively straightforward with that issue solved, but other parts have a big reliance on bs-json and probably a lot of assumptions about being JavaScript (e.g. bs.xyz, etc). Perhaps there are ways to replicate these APIs in native, but it seems like a large project.

@baransu
Copy link
Author

baransu commented Nov 1, 2019

There is native Belt packaged by Jared: https://github.com/jaredly/belt besides that the biggest issue would be bs-json and replacing random usage of Js module

@tlvenn
Copy link

tlvenn commented Nov 7, 2019

This would be pretty awesome indeed !

@tlvenn
Copy link

tlvenn commented Nov 9, 2019

btw @baransu is there a reasonml sqlite3 binding somewhere ?

@baransu
Copy link
Author

baransu commented Nov 9, 2019

https://github.com/paurkedal/ocaml-caqti seems to support sqlite3

@tlvenn
Copy link

tlvenn commented Nov 10, 2019

Thanks for the link @baransu !

@adnelson
Copy link
Owner

That native Belt library could be super useful :)

@tlvenn
Copy link

tlvenn commented Dec 6, 2019

TableCloth might be an interesting avenue as well.

https://github.com/darklang/tablecloth

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