dialect

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, d Dialect)

Register adds the given Dialect to the registry at the given name.

Types

type Dialect

type Dialect interface {
	Param(int) string
}

Dialect is the common interface that all database drivers must implement.

func Get

func Get(name string) (Dialect, error)

Get returns the Dialect in the registry with the given name. An error will be returned if no Dialect with that name exists.

func MustGet

func MustGet(name string) Dialect

MustGet returns the Dialect in the registry with the given name. It will panic if no Dialect with that name is found.

Jump to

Keyboard shortcuts

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