Documentation ¶
Overview ¶
+gengo:runtimedoc=false
Index ¶
- func Collect(ctx context.Context, f Fragment) (string, []any)
- func IsNil(e Fragment) bool
- func Map[I any, O Fragment](seq iter.Seq[I], mapper func(i I) O) iter.Seq[Fragment]
- func NonNil[F Fragment](fragSeq iter.Seq[F]) iter.Seq[Fragment]
- type Const
- type ContextInjector
- type CustomValueArg
- type Fragment
- func Block(fragment Fragment) Fragment
- func BlockWithoutBrackets(seq iter.Seq[Fragment]) Fragment
- func Empty() Fragment
- func InlineBlock(fragment Fragment) Fragment
- func Join(splitter string, fragSeq iter.Seq[Fragment]) Fragment
- func JoinValues(splitter string, fragments ...Fragment) Fragment
- func Pair(query string, args ...any) Fragment
- func WithContextInjector(injector ContextInjector, fragment Fragment) Fragment
- type Func
- type NamedArg
- type NamedArgSet
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextInjector ¶
type CustomValueArg ¶
type CustomValueArg interface {
ValueEx() string
}
CustomValueArg replace ? as some query snippet
examples: ? => ST_GeomFromText(?)
type Fragment ¶
func InlineBlock ¶
func JoinValues ¶
func WithContextInjector ¶
func WithContextInjector(injector ContextInjector, fragment Fragment) Fragment
type NamedArgSet ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.