selectparse

package
v2.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldsFromSelect

func FieldsFromSelect(statement string) ([]string, error)

FieldsFromSelect returns a list of field names based on the columns of a select statement or error if it's unable to extract them.

Types

type SelectParser

type SelectParser struct {
	Statement   string
	Columns     []string
	ColumnNames []string
}

SelectParser contains the fields part of a SQL SELECT Statement and its parsed columns and respectives names and encapsulates the ability to produce said parsed data.

Jump to

Keyboard shortcuts

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