dialect

package
v0.0.0-...-b8eaa0e Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package dialect is intended to give DBMS-specific implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect interface {
	Placeholder(seq int, name ...string) string
}

Dialect defines a dialect functinality.

var DefaultDialect Dialect

DefaultDialect is a changable default dialect. Its value is used anywhere in cue package.

DefaultDialect = Postgres{}

type MySQL

type MySQL struct{}

MySQL is a dialect in MySQL.

func (MySQL) Placeholder

func (d MySQL) Placeholder(seq int, name ...string) string

Placeholder of Postgres gives `?`.

type Oracle

type Oracle struct{}

Oracle is a dialect in Oracle.

func (Oracle) Placeholder

func (d Oracle) Placeholder(seq int, name ...string) string

Placeholder of Postgres gives `:1`, `:2` ...

type Postgres

type Postgres struct{}

Postgres is a dialect in PostgreSQL.

func (Postgres) Placeholder

func (d Postgres) Placeholder(seq int, name ...string) string

Placeholder of Postgres gives `$1`, `$2` ...

Jump to

Keyboard shortcuts

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