Miguel
Miguel
There still remain many ways to raise an error with that code, so it's better instead of that to add exception handling for SQLite calls: to replace (lines 1348-1350) ```...
After transition to Karax (the new forum) `-` don't work any more at all, as I see, and "-someword" is treated as just "someword". If it worked, the issue would...
Say "-nick" returns results for "nick"...
Oh, Forum has been moved to SQLite's "Enhanced Query Syntax" (https://sqlite.org/fts3.html) now, as I see - `AND`, `OR` and parrentheses work. Then `NOT` should work instead of `-`.
Yes, `NOT` does work too. An example query with all three operators and `()` for test: "(csp AND oberon) OR (actionscript NOT mtasc)" (picked for obviousness). Queries with just negation...
Now I see `(..)`` are used already for objects matching, so maybe just to pick some syntax not used for anything (`!(...)` ?).
Backticks seem though be a limiting choice. They are used in Nim and may be needed inside expressions, and as they don't have open/close pairs, as parentheses, so either some...
`!{...}` is just for an example, same for `!(...)`, if curlies `{...}` are not used by patterns, they may work for this by themselves (no `!`).
I think if quotation is supported and with full Nim's syntax allowed inside (`!{}`), then some clashes w/o it are ok, just everything special-cased outside of `!{}` should be listed...
I try to use ranges as patterns, and they don't work now: ```nim let a = 3 match(a): of 2..3: echo 1 ``` While ranges as a much common case...