testutil

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 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