eventstore icon indicating copy to clipboard operation
eventstore copied to clipboard

Support for alternative SQL engine providers

Open mjaric opened this issue 8 years ago • 6 comments

Hi Guys,

Would be possible to add a layer where we could swap store providers? So instead of Postgrex, one could configure Tds or Mariaex.... I'm willing to contribute but I will need your guidance since I haven't scanned code yet.

Thanks

mjaric avatar Dec 14 '17 18:12 mjaric

@mjaric Making EventStore back-end agnostic has been mentioned a few times (e.g. #22).

The EventStore.Storage module would be the most suitable place to define a behaviour that could then be implemented by alternate storage providers. The existing modules in lib/event_store/storage are Postgres-specific and could be renamed appropriately (e.g. EventStore.Storage.Postgres).

slashdotdash avatar Dec 14 '17 20:12 slashdotdash

I would be interested to hear which alternative SQL databases people would like to use.

Please feel free to add a comment, or +1, to this issue to show your interest.

slashdotdash avatar Dec 14 '17 20:12 slashdotdash

Cockroachdb should be the easiest one and it mimicks postgresql.

fire avatar Jan 03 '18 02:01 fire

SQLite would be great.

fpauser avatar Oct 26 '18 06:10 fpauser

YugaByteDB would be perfect.

ronlobo avatar Jan 29 '20 14:01 ronlobo

Also fan of SQLite support. For a server app where that's used for lightweight uses and ability to swap to Postgres if the workload demands it.

aschrijver avatar Apr 05 '22 19:04 aschrijver