webmcp

diff libraries/mondelefant/mondelefant_atom_connector.lua @ 176:8d7665e0d490

Load JSON library in WebMCP and automatically convert JSON documents in mondelefant-atom-connector
author jbe
date Fri Aug 01 22:17:08 2014 +0200 (2014-08-01)
parents 6b435d3c0b14
children c16292cbcc1e
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_atom_connector.lua	Fri Aug 01 21:54:45 2014 +0200
     1.2 +++ b/libraries/mondelefant/mondelefant_atom_connector.lua	Fri Aug 01 22:17:08 2014 +0200
     1.3 @@ -129,6 +129,9 @@
     1.4  output_converters.time = time_loader_func
     1.5  output_converters.timetz = time_loader_func
     1.6  
     1.7 +output_converters.json = json.import
     1.8 +output_converters.jsonb = json.import
     1.9 +
    1.10  mondelefant.postgresql_connection_prototype.type_mappings = {
    1.11    int8 = atom.integer,
    1.12    int4 = atom.integer,
    1.13 @@ -139,6 +142,8 @@
    1.14    time = atom.time,
    1.15    text = atom.string,
    1.16    varchar = atom.string,
    1.17 +  json = json,
    1.18 +  jsonb = json,
    1.19  }
    1.20  
    1.21  

Impressum / About Us