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 modules, 3 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

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