// GenerateFullQuery generates the full query from the ast. func GenerateFullQuery(statement sqlparser.Statement) *sqlparser.ParsedQuery { buf := sqlparser.NewTrackedBuffer(nil) statement.Format(buf) return buf.ParsedQuery() }
func generateQuery(statement sqlparser.Statement) string { buf := sqlparser.NewTrackedBuffer(dmlFormatter) statement.Format(buf) return buf.String() }