Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Renamed the test-* wrapper for the new JSON array serializer to better match its internal implementation function. NFC. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | fossil-spawn |
| Files: | files | file ages | folders |
| SHA3-256: |
06d27250d5228c13faef90cc0f348fe8 |
| User & Date: | wyoung 2021-06-22 03:52:17.466 |
Context
|
2021-06-22
| ||
| 05:25 | Added a JSON array deserializer function and a test-json-deserialize-array command to test it. check-in: dac496b300 user: wyoung tags: fossil-spawn | |
| 03:52 | Renamed the test-* wrapper for the new JSON array serializer to better match its internal implementation function. NFC. check-in: 06d27250d5 user: wyoung tags: fossil-spawn | |
| 03:45 | Extracted json_serialize_array() function common to both test-json-carray and settings commands, reducing redundant code. check-in: ead1432af9 user: wyoung tags: fossil-spawn | |
Changes
Changes to src/db.c.
| ︙ | ︙ | |||
4491 4492 4493 4494 4495 4496 4497 | sqlite3_close(g.db); g.db = 0; g.repositoryOpen = 0; g.localOpen = 0; } /* | | | | 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 |
sqlite3_close(g.db);
g.db = 0;
g.repositoryOpen = 0;
g.localOpen = 0;
}
/*
** COMMAND: test-json-serialize-array
**
** Serializes the passed arguments as a JSON array of strings, proving that
** the JSON1 and Carray SQLite extensions are cooperating.
*/
void test_json_serialize_array_cmd(void){
fossil_print("%s\n", json_serialize_array(g.argv+2, g.argc-2));
}
/*
** Serializes the passed array as a JSON array of strings.
*/
const char* json_serialize_array(char* const azValues[], size_t nValues){
|
| ︙ | ︙ |