sqlite_ecto2 icon indicating copy to clipboard operation
sqlite_ecto2 copied to clipboard

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

Open xward opened this issue 5 years ago • 4 comments

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

xward avatar May 29 '20 18:05 xward

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"}]}, ...

AmurgCodru avatar Nov 13 '20 17:11 AmurgCodru

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

warmwaffles avatar Mar 22 '21 18:03 warmwaffles

@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.

AmurgCodru avatar Mar 23 '21 07:03 AmurgCodru

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.

warmwaffles avatar Mar 23 '21 14:03 warmwaffles