(data)
| 1236 | ''') |
| 1237 | |
| 1238 | def hstore_decoder(data): |
| 1239 | result = {} |
| 1240 | items = data.split(',') |
| 1241 | for item in items: |
| 1242 | k, _, v = item.partition('=>') |
| 1243 | result[k.strip('"')] = v.strip('"') |
| 1244 | |
| 1245 | return result |
| 1246 | |
| 1247 | def hstore_encoder(obj): |
| 1248 | return ','.join('{}=>{}'.format(k, v) for k, v in obj.items()) |
nothing calls this directly
no outgoing calls
no test coverage detected