test/command/suite/select/function/snippet/cache.test
raw| 1 | # TODO: cache isn't implemented yet. |
| 2 | table_create Entries TABLE_NO_KEY |
| 3 | column_create Entries content COLUMN_SCALAR ShortText |
| 4 | |
| 5 | load --table Entries |
| 6 | [ |
| 7 | {"content": "<p>mroonga and MySQL</p>"}, |
| 8 | {"content": "<p>pgroonga and PostgreSQL</p>"} |
| 9 | ] |
| 10 | |
| 11 | select Entries \ |
| 12 | --output_columns ' \ |
| 13 | snippet(content, \ |
| 14 | "SQL", "<span class=\\"keyword\\">", "</span>" \ |
| 15 | )' |