sqlfill

package
v0.0.0-...-e44b46f Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

SQL Rewriter replacing star-expressions with fields names.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Substitute

func Substitute(catalog LiteCatalog, node sqlparser.SQLNode, caseSensitive bool) error

func SubstituteStr

func SubstituteStr(catalog LiteCatalog, str string, caseSensitive bool) (string, error)

Types

type CatalogImpl

type CatalogImpl struct {
	CaseSensitive bool
	DefaultSchema string
	Map           map[LiteTN][]string
}

func (*CatalogImpl) Init

func (c *CatalogImpl) Init()

func (CatalogImpl) LookupTable

func (c CatalogImpl) LookupTable(table sqlparser.TableName) []string

func (CatalogImpl) PutTable

func (c CatalogImpl) PutTable(tn LiteTN, cols []string)

func (CatalogImpl) PutTable0

func (c CatalogImpl) PutTable0(tn string, cols []string)

type LiteCatalog

type LiteCatalog interface {
	LookupTable(table sqlparser.TableName) []string
}

type LiteTN

type LiteTN [2]string

func (LiteTN) Lower

func (l LiteTN) Lower() LiteTN

Jump to

Keyboard shortcuts

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