sql

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Placeholderer

type Placeholderer interface {
	Placeholders(n int) string
}

type SQLBuilder

type SQLBuilder struct {
	bytes.Buffer
	SetVarer
	Placeholderer
}

func (*SQLBuilder) And

func (s *SQLBuilder) And(a interface{}) *SQLBuilder

func (*SQLBuilder) Between

func (s *SQLBuilder) Between(a interface{}) *SQLBuilder

func (*SQLBuilder) Eql

func (s *SQLBuilder) Eql(v interface{}) *SQLBuilder

func (*SQLBuilder) From

func (s *SQLBuilder) From(table string) *SQLBuilder

func (*SQLBuilder) Insert

func (s *SQLBuilder) Insert(table string, fields []string, n int) *SQLBuilder

func (*SQLBuilder) Select

func (s *SQLBuilder) Select(cols []string) *SQLBuilder

func (*SQLBuilder) SetVar

func (s *SQLBuilder) SetVar(varName string, val interface{}) *SQLBuilder

func (*SQLBuilder) String

func (s *SQLBuilder) String() string

func (*SQLBuilder) Where

func (s *SQLBuilder) Where(col string) *SQLBuilder

type SetVarer

type SetVarer interface {
	SetVar(name string, val interface{}) string
}

Directories

Path Synopsis
Package mysql is a MySQL driver for Seedr.
Package mysql is a MySQL driver for Seedr.
internal/tests/models
Package test_models is an example of basic models setup.
Package test_models is an example of basic models setup.

Jump to

Keyboard shortcuts

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