join

package
v0.0.0-...-19e4ed3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JoinBehavior

type JoinBehavior string
var (
	JoinBehaviorLeftJoin  JoinBehavior = "JoinBehaviorLeftJoin"
	JoinBehaviorInnerJoin JoinBehavior = "JoinBehaviorInnerJoin"
)

type MissingJoinResult

type MissingJoinResult struct {
	MissingColumnsToJoinedTables   map[string]string
	MissingColumnsToPossibleTables map[string]map[string]string
}

Useful information for telling the end user what happened during the join.

func AddMissingJoinsToQuery

func AddMissingJoinsToQuery(parsedQuery *pg_query.ParseResult, databaseInfo dbinfo.DatabaseInfo, joinBehavior JoinBehavior) (MissingJoinResult, error)

Attempts to add JOINs to queries that reference columns from other tables.

Jump to

Keyboard shortcuts

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