Creates a raw SQL expression that won't be escaped.
WARNING: Only use with trusted input. Raw expressions bypass escaping and can lead to SQL injection if used with untrusted data.
const query = new QueryBuilder() .select("*") .from("events") .where("created_at", ">", raw("NOW() - INTERVAL '1 day'")) .build() Copy
const query = new QueryBuilder() .select("*") .from("events") .where("created_at", ">", raw("NOW() - INTERVAL '1 day'")) .build()
Creates a raw SQL expression that won't be escaped.
WARNING: Only use with trusted input. Raw expressions bypass escaping and can lead to SQL injection if used with untrusted data.