watermarkchurch / wcc-contentful

An alternative to Contentful's contentful.rb ruby client, contentful_model, and contentful_rails gems all in one.
MIT License
2 stars 1 forks source link

Create a Sqlite store implementation #20

Open gburgett opened 6 years ago

gburgett commented 6 years ago

Sqlite can be loaded in memory using the special filename :memory: https://www.sqlite.org/inmemorydb.html

This could make it a more effective replacement for the MemoryStore which just wraps a ruby hash - it could handle in-memory eager syncs in the several hundred megabyte range.

Implement the Store interface using Sqlite, only requiring the file if the Sqlite store is selected via the WCC::Contentful configuration (the same way the Postgres store works)

gburgett commented 5 years ago

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