by metabrew · 14y ago · 0 comments
Who needs CouchDB or Node.js when you can just say CREATE EXTENSION 'couchnodegres.js'
"With PostgreSQL 9.2, query results can be returned as JSON data types."
It also supports the PL/V8 stored procedure format, which is Javascript http://code.google.com/p/plv8js/wiki/PLV8
It's very, very close.
spc_handle_request(req_headers, req_body, http_method, ...)
stored procedure does simple routing and does something like insert into table (a, b, c) values (to_json(req_body).a, to_json(req_body).b, to_json(req_body).c);
or to_json(select * from emp);
Time to implement simple crud app: 10 minutes.