Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsParamSign ¶
Types ¶
type Param ¶
type Param struct {
// contains filtered or unexported fields
}
Param represents a input argument to the query which can be specified using: - positional parameters $1 - named parameter operator @param - named parameter function calls sqlc.arg(param)
func NewInferredParam ¶
NewInferredParam builds a new params with inferred nullability
func NewUserNullableParam ¶
NewUserNullableParam is a parameter that has been overridden by the user to be nullable.
func (Param) IsSqlcSlice ¶
IsSlice returns whether this param is a sqlc.slice() param.
type ParamSet ¶
type ParamSet struct {
// contains filtered or unexported fields
}
ParamSet represents a set of parameters for a single query
func NewParamSet ¶
NewParamSet creates a set of parameters with the given list of already used positions
func (*ParamSet) Add ¶
Add adds a parameter to this set and returns the numbered location used for it
func (*ParamSet) FetchMerge ¶
FetchMerge fetches an indexed parameter, and merges `mergeP` into it Returns: the merged parameter and whether it was a named parameter