Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Queryable ¶
type Queryable struct { Target Target Specifier Selectable Joins []Queryable SelectOnly bool // contains filtered or unexported fields }
Queryable represents an abstract entity that you can run query against.
type Selectable ¶
type Selectable interface { // Selects returns a list of column names as appeared // in a select query. Selects() []string }
Selectable is the interface describing the relations a select query can be run for.
type Target ¶
type Target int
Target represents a single, non-recursive queryable target. It's usually a relation (tables, views) but can be a function result.
const ( TargetUnspecified Target = iota TargetLocks TargetLocksOnTxID TargetStatActivity TargetStatReplication TargetStatSSL TargetStatGSSAPI TargetStatWALReceiver TargetStatSubscription TargetStatDatabase TargetStatDatabaseConflicts TargetStatUserTables TargetStatUserIndexes TargetStatIOUserIndexes TargetStatIOUserSequences TargetStatIOUserTables TargetStatUserFunctions TargetStatArchiver TargetStatBGWriter TargetStatSLRU TargetBlockingPIDs )
Targets defined
func (Target) GetJoinClauses ¶
GetJoinClauses returns the relation alias, column alias, and join condition between the target and the target it's being joined with.
Click to show internal directories.
Click to hide internal directories.