azuqua / cassanknex

A CQL query builder written in the spirit of Knexjs
MIT License
50 stars 10 forks source link

TOKEN query #45

Closed dekelev closed 6 years ago

dekelev commented 6 years ago

Added new tokenWhere method to perform select queries using the special TOKEN keyword wrapped around the primary keys and their values, which is mainly used for pagination.

Example .tokenWhere("id", ">", 1); will result in WHERE TOKEN("id") > TOKEN(?) .tokenWhere(["id", "name"], ">", [1, "John"]); will result in WHERE TOKEN("id", "name") > TOKEN(?, ?)