News for hackers. Stuff that matters.
Re:Typed-Html: Type Checked JSX for Rust by pritambaral on Monday November 19, 2018 @03:00AM (#18484798)
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.
Re:Typed-Html: Type Checked JSX for Rust by hbbio on Monday November 19, 2018 @06:23AM (#18485618)
We 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/