dialect

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyIdent   = errors.New("empty ident")
	ErrNoIdentValue = errors.New("no ident type")
	ErrInvalidIdent = errors.New("invalid ident")
	ErrAsterisk     = errors.New("not allowed asterisk")
	ErrIdentQuote   = errors.New("not allowed ident quote or brackets")
)

Functions

func SetDialect

func SetDialect(di Dialect)

Types

type Dialect

type Dialect interface {
	WriteIdent(w Writer, v string) error
	WriteNull(w Writer) error
	WriteInt64(w Writer, v int64) error
	WriteFloat64(w Writer, v float64) error
	WriteBool(w Writer, v bool) error
	WriteString(w Writer, v string) error
	WriteBytes(w Writer, v []byte) error
	WriteTime(w Writer, v time.Time) error
}

func GetDialect

func GetDialect() Dialect

type Writer

type Writer interface {
	io.Writer
	io.ByteWriter
	io.StringWriter
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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