dialect

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2018 License: MIT Imports: 4 Imported by: 1

README

dialect GoDoc

The dialect package handles differences in SQL dialects.

There is no backward compatibility guarantee for this package.

Documentation

Overview

Package dialect handles differences in various SQL dialects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

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

Dialect provides information about an SQL dialect.

var (
	ANSI     *Dialect
	MSSQL    *Dialect
	MySQL    *Dialect
	Postgres *Dialect
	SQLite   *Dialect
)

Pre-defined dialects

func (*Dialect) Match

func (d *Dialect) Match(drv driver.Driver) bool

Match returns true if the dialect is appropriate for the driver.

func (*Dialect) Placeholder

func (d *Dialect) Placeholder(n int) string

Placeholder returns the string for a placeholder.

func (*Dialect) Quote

func (d *Dialect) Quote(name string) string

Quote quotes a column name.

Jump to

Keyboard shortcuts

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