parser

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadSQLFile

func ReadSQLFile(path string) (string, error)

Types

type ParseResult

type ParseResult struct {
	Tables *orderedmap.Map[string, *model.Table]
	Views  *orderedmap.Map[string, *model.View]
}

func ParseSQL

func ParseSQL(sql string) (*ParseResult, error)

func ParseSQLFile

func ParseSQLFile(path string) (*ParseResult, error)

func ParseSQLFileWithSchema added in v0.4.0

func ParseSQLFileWithSchema(path string, defaultSchema string) (*ParseResult, error)

func ParseSQLFiles added in v0.3.0

func ParseSQLFiles(paths []string) (*ParseResult, error)

func ParseSQLFilesWithSchema added in v0.4.0

func ParseSQLFilesWithSchema(paths []string, defaultSchema string) (*ParseResult, error)

func ParseSQLWithSchema added in v0.4.0

func ParseSQLWithSchema(sql string, defaultSchema string) (*ParseResult, error)

Jump to

Keyboard shortcuts

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