I wanted to store the formatted text in the database. Sort of
Сущность1: потомок1: свойство1 потомок2: свойство2 Сущность2: потомок1: свойство1 потомок2: свойство2 It seems like the field is xml. But I think the format is "fat". Or jsonp for such purposes use?
Search by text is not planned. Just want to edit and display formatted text on the web.
My thoughts
if you reduce the task to a two-dimensional array, then json
INSERT INTO testdb.test (txt_json) VALUES ('{"name": "Administrator", "login": "root", "databases": "lol"}' :: json), ('{{"name": " Administrator2 "," login ":" root2 "," databases ":" lol2 "} ':: json)
and then
SELECT json_each_text ( txt_json ) FROM testdb.test The only thing is that the lines (username, Administrator) will have to be parsed by the first comma.
- You can use which thread RichText Editor
Pros - any kind. Cons - implementation difficulty
- Do not try to store a field — as I did — a field — a link to a wiki description page. That is, storage and formatting are given to another system.