mutationtest

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package mutationtest holds the statements api.IsMutation is tested on, shared by its unit test and by the integration test that checks each one against ClickHouse's own parser. Add a case here, not to either test.

Index

Constants

This section is empty.

Variables

View Source
var Cases = []Case{}/* 152 elements not displayed */

Cases is every statement api.IsMutation is tested on.

Functions

This section is empty.

Types

type Case

type Case struct {
	Name string
	SQL  string
	// Mutation is true for a statement that goes through Exec.
	Mutation bool
	// Unparsed marks a statement ClickHouse rejects as a syntax error, so its
	// parser has no answer to check Mutation against; the integration test
	// fails if one starts to parse.
	Unparsed bool
}

Case is a statement and how api.IsMutation classifies it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL