4 ms·
How close does Opa bring the database to the JS/HTML? From what little I read, it seems Opa is primarily tied to MongoDB, and CouchDB to a lesser level.
by pritambaral 8y ago
How close does Opa bring the database to the JS/HTML? From what little I read, it seems Opa is primarily tied to MongoDB, and CouchDB to a lesser level.
- hbbio 8y agoWe implemented a database abstraction layer called DbGen which generates the actual queries from a common ground. The key idea is to traverse a tree datastructure which will map to database entities, for instance: database my_db { int /basic/i float /basic/f string /basic/s stored /r intmap(stored) /imap } Kind of an ORM but without objects (Opa is purely functional) and without relations when using NoSQL. But DbGen has support for several types of database including PostgreSQL: See for instance this blog http://www.josetteorama.com/to-sql-from-nosql/ http://www.josetteorama.com/to-sql-from-nosql/