statamic / eloquent-driver

Provides support for storing your Statamic data in a database, rather than flat files.
https://statamic.dev/tips/storing-content-in-a-database
MIT License
104 stars 73 forks source link

Separating the orderable tree from the collections #147

Closed mkael1 closed 1 year ago

mkael1 commented 1 year ago

In my use case I would like to be able to store the order of my entries in my database without having the store the collections themselves in my database. Is there any workaround to do this / a future release that allows this?

ryanmitchell commented 1 year ago

You can already specify which 'repositories' to store - entries can be db-driven and collections flat-file driven. See the config file for the options available.

mkael1 commented 1 year ago

To be more precise I would like to be able to have my collections driver as file while having my collection entries tree/ tree_model (for the orderable entries) in my database image

ryanmitchell commented 1 year ago

There is an open PR for this: https://github.com/statamic/eloquent-driver/pull/133