mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 12:04:21 +01:00
Hi! This is my first PR on the project, so I apologize if I did not follow a convention from the project. #127 This PR implements json_quote as specified in their source: https://www.sqlite.org/json1.html#jquote. It follows the internal doc guidelines for implementing functions. Most tests were added from sqlite test suite for json_quote, while some others were added by me. Sqlite test suite for json_quote depends on json_valid to test for correct escape control characters, so that specific test at the moment cannot be done the same way. Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Reviewed-by: Sonny (@sonhmai) Closes #763