Skip to content

Refactor query building process

Koala Yeung requested to merge refactor/queries into main
  • instead of allocate and construct the query text all the time, use prepare query, string literal definition with parameter binding to reduce the work for allocate and deallocate memory of SQL string.

  • reduce macro. move string literals into relevant function if possible.

Some side changes:

  • update libcangjie-bench to bench mark both v1 and v2 cangjie_get_characters.
  • did some cppcheck fix to bench.c and cli.c.
  • improved test coverage.
Edited by Koala Yeung

Merge request reports