join

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join[T any, U, V *T | **T](t1 U, t2 V) model.Joins

Join makes a inner join betwent the tables

Example

goe.Select(db.Food).
Joins(join.Join(&db.Animal.Id, &db.Food.IdAnimal)).AsSlice()

func LeftJoin

func LeftJoin[T any, U, V *T | **T](t1 U, t2 V) model.Joins

LeftJoin makes a left join betwent the tables

Example

goe.Select(db.Food).
Joins(join.LeftJoin(&db.Animal.Id, &db.Food.IdAnimal)).AsSlice()

func RightJoin

func RightJoin[T any, U, V *T | **T](t1 U, t2 V) model.Joins

RightJoin makes a right join betwent the tables

Example

goe.Select(db.Food).
Joins(join.RightJoin(&db.Animal.Id, &db.Food.IdAnimal)).AsSlice()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL