json-fs-query
    Preparing search index...

    Function splitClauses

    • Split a masked query (see maskStrings) into its clauses, reading its top-level words once, left to right. A clause word counts only as a whole word outside brackets, and not where it must be a name: as a clause's first word (sort limit), after a comma or as, or before a comparator (where limit = 1).

      Parameters

      • query: string

      Returns SplitQuery

      undefined when the query doesn't start with read, insert, update or delete (left to the find* steps).

      For a joined record outside read, a clause the command doesn't allow, a repeated clause, a clause out of order, or the 2.x forms of a second where (and where, or where, or a plain repeat).