schema

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: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlaceHolder

type PlaceHolder struct {
	ListArg bool
	Name    string
}

type Schema

type Schema struct {
	Tables map[string]table.Table
}

func (*Schema) CompileDelete

func (s *Schema) CompileDelete(dml *sqlparser.Delete) (tab table.Table, job *table.TableUpdate, err error)

Compiles an delete statement.

func (*Schema) CompileInsert

func (s *Schema) CompileInsert(dml *sqlparser.Insert) (tab table.Table, job *table.TableInsert, err error)

Compiles an insert-statement.

func (*Schema) CompileSelect

func (s *Schema) CompileSelect(q *sqlparser.Select) (t table.Table, cols []int, scan *table.TableScan, err error)

func (*Schema) CompileUpdate

func (s *Schema) CompileUpdate(dml *sqlparser.Update) (tab table.Table, job *table.TableUpdate, err error)

Compiles an update statement.

func (*Schema) Get

func (s *Schema) Get(n string) table.Table

func (*Schema) Put

func (s *Schema) Put(n string, t table.Table)

type Setter

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

func (*Setter) Put

func (s *Setter) Put(val interface{})

func (*Setter) Reset

func (s *Setter) Reset()

type SetterMap

type SetterMap map[string]*Setter

func FindPlaceHolders

func FindPlaceHolders(scan *table.TableScan) SetterMap

This function is defined as:

sm := make(SetterMap)
sm.InspectTableScan(scan)
return sm

func (SetterMap) Dangerous_Inspect

func (sm SetterMap) Dangerous_Inspect(i *interface{})

If you know what you are doing!

func (SetterMap) InspectTableScan

func (sm SetterMap) InspectTableScan(scan *table.TableScan)

func (SetterMap) InspectTuple

func (sm SetterMap) InspectTuple(tuple []interface{})

func (SetterMap) InspectTuples

func (sm SetterMap) InspectTuples(tuples [][]interface{})

func (SetterMap) Reset

func (sm SetterMap) Reset()

Jump to

Keyboard shortcuts

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