Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method QueryCompiler.prototype.collectConstraints
import { QueryCompiler } from "https://deno.land/x/cotton@v0.7.5/src/querycompiler.ts";

Collect query constraints in the current query

Example result:

["WHERE `users`.`email` = ?", "AND `users`.`age` > 16", "LIMIT 1"]

Returns

string[]