insert

package
v0.0.0-...-28ac8a9 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryInsert

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

func (*QueryInsert) Execute

func (q *QueryInsert) Execute() (sql.Result, error)

func (*QueryInsert) Row

func (q *QueryInsert) Row(fields *query.Row) *QueryInsert

func (*QueryInsert) Rows

func (q *QueryInsert) Rows(fields *query.Rows) *QueryInsert

func (*QueryInsert) Select

func (q *QueryInsert) Select(insertFields []string, selectFields []string, restriction interface{}) *QueryInsert

func (*QueryInsert) SelectTable

func (q *QueryInsert) SelectTable(table string) *QueryInsert

type Service

type Service interface {
	Execute() (sql.Result, error)
	Row(fields *query.Row) *QueryInsert
	Rows(fields *query.Rows) *QueryInsert
	Select(insertFields []string, selectFields []string, restriction interface{}) *QueryInsert
	// contains filtered or unexported methods
}

func NewQueryInsert

func NewQueryInsert(table string, db *sql.DB) Service

Jump to

Keyboard shortcuts

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