testutil

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsedQueryFromString

func ParsedQueryFromString(t *testing.T, query string) *sqlparser.ParsedQuery

ParsedQueryFromString is a test helper that returns a *sqlparser.ParsedQuery from a plain string. It marks the test as a failure if the query cannot be parsed.

func StatementFromString

func StatementFromString(t *testing.T, query string) sqlparser.Statement

StatementFromString is a test helper that returns a sqlparser.Statement from a plain string. It marks the test as a failure if the query cannot be parsed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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