(data)
| 1190 | ''') |
| 1191 | |
| 1192 | def hstore_decoder(data): |
| 1193 | result = {} |
| 1194 | items = data.split(',') |
| 1195 | for item in items: |
| 1196 | k, _, v = item.partition('=>') |
| 1197 | result[k.strip('"')] = v.strip('"') |
| 1198 | |
| 1199 | return result |
| 1200 | |
| 1201 | def hstore_encoder(obj): |
| 1202 | return ','.join('{}=>{}'.format(k, v) for k, v in obj.items()) |
nothing calls this directly
no outgoing calls
no test coverage detected