stephenafamo / bob

SQL query builder and ORM/Factory generator for Go with support for PostgreSQL, MySQL and SQLite
https://bob.stephenafamo.com
MIT License
794 stars 41 forks source link

PreloadWhere Documentation/Examples #171

Closed daddz closed 9 months ago

daddz commented 9 months ago

I am trying to figure out how I can use the generated code to filter a select based on a value in a related to-one table.

While digging through the repository I found the PreloadWhere option which looks like it could be used but unfortunately it's not really documented and there are no examples on how to use it.

Could you show/add some documentation/examples on how to use it with generated SelectWheres?