prisma / quaint

SQL Query AST and Visitor for Rust
Apache License 2.0
583 stars 61 forks source link

feat: enable positionally inserting joins in a FROM clause #258

Closed Weakky closed 3 years ago

Weakky commented 3 years ago

Overview

Add joins methods to the Table trait so that joins can be inserted positionally into the Query AST.

This enables, for instance, to render such a query:

SELECT
  *
FROM
  "User" LEFT JOIN "Post" AS "p" ON "p"."userId" = "User"."id",
  "Post"
Weakky commented 3 years ago

Review fixes: Added docs + whiteline