piccolo icon indicating copy to clipboard operation
piccolo copied to clipboard

Joins

Open Forceres opened this issue 1 year ago • 2 comments

Is it possible to use joins without fully raw query? Or is here a way to build raw queries without hard coding?

Forceres avatar Jul 07 '24 10:07 Forceres

Joins are handled automatically, but you can use join_on if you want to join on something without a primary key, or do a reverse join:

https://piccolo-orm.readthedocs.io/en/latest/piccolo/query_types/joins.html#join-on

dantownsend avatar Jul 07 '24 10:07 dantownsend

Ended with implementing my own joins builder, the absence of reverse look up relationships forced to do it

Forceres avatar Jul 08 '24 18:07 Forceres