IN/NOT IN
Having the following query in select-products-in-categories.sql:
SELECT ProductID, ProductName, UnitPriceFROM ProductsWHERE Discontinued = false AND CategoryID IN (:categories)You can use the generated API as below:
const products = await selectProductsInCategories(client, { categories: [10, 11, 12],});You can also use the NOT IN operator:
SELECT ProductID, ProductName, UnitPriceFROM ProductsWHERE Discontinued = false AND CategoryID NOT IN (98, 99, ?)NOTE: The IN Clause as shown will not work with the deno_mysql driver. See issue #70 in the deno_mysql repository.