Documentation
¶
Index ¶
- type Formatted
- func Expression(expression pgsql.SyntaxNode, builder *OutputBuilder) (Formatted, error)
- func Statement(statement pgsql.Statement, builder *OutputBuilder) (Formatted, error)
- func SyntaxNode(node pgsql.SyntaxNode) (Formatted, error)
- func SyntaxNodeWithBuilder(node pgsql.SyntaxNode, builder *OutputBuilder) (Formatted, error)
- type OutputBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatted ¶
type Formatted struct {
Statement string
Parameters map[string]any
LiteralParameters map[string]string
}
func Expression ¶
func Expression(expression pgsql.SyntaxNode, builder *OutputBuilder) (Formatted, error)
func Statement ¶
func Statement(statement pgsql.Statement, builder *OutputBuilder) (Formatted, error)
func SyntaxNode ¶
func SyntaxNode(node pgsql.SyntaxNode) (Formatted, error)
func SyntaxNodeWithBuilder ¶ added in v0.9.0
func SyntaxNodeWithBuilder(node pgsql.SyntaxNode, builder *OutputBuilder) (Formatted, error)
type OutputBuilder ¶
type OutputBuilder struct {
// contains filtered or unexported fields
}
func NewOutputBuilder ¶
func NewOutputBuilder() *OutputBuilder
func (*OutputBuilder) Build ¶
func (s *OutputBuilder) Build() Formatted
func (*OutputBuilder) HasOutput ¶
func (s *OutputBuilder) HasOutput() bool
func (*OutputBuilder) WithMaterializedParameters ¶
func (s *OutputBuilder) WithMaterializedParameters(parameters map[string]any) *OutputBuilder
func (*OutputBuilder) Write ¶
func (s *OutputBuilder) Write(values ...any)
Click to show internal directories.
Click to hide internal directories.