pofider / node-simple-odata-server

Simple OData server for node.js
MIT License
97 stars 60 forks source link

Add my own database? #29

Closed retorquere closed 7 years ago

retorquere commented 7 years ago

I have a postgresql database with JSONB documents. Is it possible to use this inside node-simple-odata-server via a translation layer of some kind?

pofider commented 7 years ago

You would need to implement the update, remove, query, and insert handlers like we do here https://github.com/pofider/node-simple-odata-server/blob/master/lib/nedbAdapter.js

I do something similar in this package, but unfortunately I'm too busty to provide something you would be able to use right away. Hopefully you or someone else will be able to contribute it.