template

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTrue added in v0.2.2

func IsTrue(i interface{}) bool

Types

type DummyDynamic added in v0.2.2

type DummyDynamic struct{}

type Dynamic added in v0.2.2

type Dynamic interface {
	// contains filtered or unexported methods
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

func (*Manager) FindSqlParser

func (m *Manager) FindSqlParser(sqlId string) (*Parser, bool)

func (*Manager) RegisterData

func (m *Manager) RegisterData(data []byte) error

func (*Manager) RegisterFile

func (m *Manager) RegisterFile(file string) error

type MysqlDynamic added in v0.2.2

type MysqlDynamic struct {
	// contains filtered or unexported fields
}

func (*MysqlDynamic) Param added in v0.2.2

func (d *MysqlDynamic) Param(p interface{}) string

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) ParseMetadata

func (p *Parser) ParseMetadata(driverName string, params ...interface{}) (*sqlparser.Metadata, error)

only use first param

type PostgresDynamic added in v0.2.2

type PostgresDynamic struct {
	// contains filtered or unexported fields
}

func (*PostgresDynamic) Param added in v0.2.2

func (d *PostgresDynamic) Param(p interface{}) string

Jump to

Keyboard shortcuts

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