Documentation
¶
Overview ¶
Package static holds one instance of each mistake the static analyzers report, and one correct use of each construct beside it.
Index ¶
- Variables
- func DynamicColumn(name string) sqlb.Expr[string]
- func JoinFullOuter() *pg.SelectQuery
- func JoinNatural() *pg.SelectQuery
- func JoinOtherEngineSpelling() *pg.SelectQuery
- func LiteralConstant() sqlb.Expr[string]
- func LiteralFromVariable(s string) sqlb.Expr[string]
- func QueryLiteral() sqlb.Query
- func RowArity() sqlb.Predicate
- func RowRight() sqlb.Predicate
- func RowTypes() sqlb.Predicate
- func SetOpPostgresHas() *pg.SelectQuery
- func SetOpSQLiteLacks() *sqlite.SelectQuery
- func StructLiteral() *sqlb.FilteredUpdate[sqlb.PostgresDialect]
Constants ¶
This section is empty.
Variables ¶
var ( Users = sqlb.Table{Name: "users", Alias: "u"} ID = sqlb.Col[int64](Users, "id") Name = sqlb.Col[string](Users, "name") Posts = sqlb.Table{Name: "posts", Alias: "p"} PUser = sqlb.Col[int64](Posts, "user_id") )
Users and Posts are the tables the probe's statements are written against.
Functions ¶
func DynamicColumn ¶
DynamicColumn is a Col whose name came from outside.
func JoinFullOuter ¶
func JoinFullOuter() *pg.SelectQuery
JoinFullOuter is a keyword the constants omit that both engines have.
func JoinNatural ¶
func JoinNatural() *pg.SelectQuery
JoinNatural is refused everywhere, even where the engine has it.
func JoinOtherEngineSpelling ¶
func JoinOtherEngineSpelling() *pg.SelectQuery
JoinOtherEngineSpelling is T-SQL's spelling of LATERAL.
func LiteralConstant ¶
LiteralConstant is what Literal is for.
func LiteralFromVariable ¶
LiteralFromVariable is interpolation: the text came from a variable.
func QueryLiteral ¶
QueryLiteral builds a Query without its constructor.
func SetOpPostgresHas ¶
func SetOpPostgresHas() *pg.SelectQuery
SetOpPostgresHas is the same keyword on Postgres, which accepts it.
func SetOpSQLiteLacks ¶
func SetOpSQLiteLacks() *sqlite.SelectQuery
SetOpSQLiteLacks is INTERSECT ALL on a statement fixed to SQLite.
func StructLiteral ¶
func StructLiteral() *sqlb.FilteredUpdate[sqlb.PostgresDialect]
StructLiteral builds an Update without its constructor.
Types ¶
This section is empty.