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

Add support to extention, like json1 (to have jsonb support) #242

Open
xward opened this issue May 29, 2020 · 4 comments
Open

Add support to extention, like json1 (to have jsonb support) #242

xward opened this issue May 29, 2020 · 4 comments

Comments

@xward
Copy link

xward commented May 29, 2020

https://www.sqlite.org/json1.html

This would be awsome ! it is complicated ?

Thanks a lot for your work, I'm using it for a small project.

Regards,
X

@LordPraslea
Copy link

Leaving this for others who might need JSON with sqlite.

You can use sqlitex and build it to enable JSON1. However, you'll have to write your own SQL

In your mix.exs
defp deps
...
{:sqlitex, "~> 1.7", system_env: [{"ESQLITE_CFLAGS","-DSQLITE_ENABLE_JSON1"}]},
...

@warmwaffles
Copy link
Member

@LordPraslea this is now enabled by default with the exqlite and ecto3 adapter

@LordPraslea
Copy link

LordPraslea commented Mar 23, 2021

@warmwaffles
Nice, I will take a look, I've already started to implement an ecto adapter and a server interface to allow ACTOR manipulation for a project where I need multiple db's open at once.

@warmwaffles
Copy link
Member

Nice, I will take a look, I've already started to implement an ecto adapter and a server interface to allow ACTOR manipulation for a project where I need multiple db's open at once.

I have a project where I have thousands of smallish databases (~2GB a piece) that I am doing map reduce stuff with. I built that ecto3 and exqlite adapter to meet my needs.

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