Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind string
const ( // PlaceholderToken is the bind‐marker Placeholder = "?" // ParameterizedValuesOnly indicates that this INSERT // uses placeholders only in its VALUES clause. ParameterizedValuesOnly Kind = "ParameterizedValuesOnlyInsert" )
type Statement ¶
type Statement struct {
*insert.Statement
Kind Kind
ValuesOnlyPlaceholdersCnt int
PlaceholderValue *insert.Value
}
func NewStatement ¶
NewStatement allocates a Statement with a pre-built placeholder node.
func (*Statement) CloneForValuesOnly ¶
CloneForValuesOnly returns a shallow clone prepared for values-only usage. It copies only the top-level struct and fields we’ll change.
func (*Statement) PrepareValuesOnly ¶
PrepareValuesOnly mutates this Statement to values-only mode. Call this only on a fresh/unshared Statement.
Click to show internal directories.
Click to hide internal directories.