engine

package
v0.0.0-...-513868c Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Engines map[string]Engine = map[string]Engine{}

Functions

func UseMySQL

func UseMySQL()

Types

type Engine

type Engine interface {
	Dialect() string
	Escape(str string) string
	BuildColumn(str string) string
	BuildContains(str string) string
	BuildStartsWith(str string) string
	BuildEndsWith(str string) string
	BuildLimit(offset, limit string) string
}

type MySQL

type MySQL struct {
}

func NewMySQL

func NewMySQL() *MySQL

func (*MySQL) BuildColumn

func (m *MySQL) BuildColumn(str string) string

func (*MySQL) BuildContains

func (m *MySQL) BuildContains(str string) string

func (*MySQL) BuildEndsWith

func (m *MySQL) BuildEndsWith(str string) string

func (*MySQL) BuildLimit

func (m *MySQL) BuildLimit(offset, limit string) string

func (*MySQL) BuildStartsWith

func (m *MySQL) BuildStartsWith(str string) string

func (*MySQL) Dialect

func (m *MySQL) Dialect() string

func (*MySQL) Escape

func (m *MySQL) Escape(str string) string

Jump to

Keyboard shortcuts

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