db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	ToSQL(row *model.Row) (int64, error)
}

type SqlGenerator

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

This is a helper to build a Sql from a row

func NewSqlGenerator

func NewSqlGenerator(driverName, dataSource string) *SqlGenerator

NewSqlGenerator Create a SqlGenerator

func (*SqlGenerator) ToSQL

func (s *SqlGenerator) ToSQL(row *model.Row) (int64, error)

ToSQL

Jump to

Keyboard shortcuts

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