mssql

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Adapter = MSSQL{}

Functions

This section is empty.

Types

type ErrorWithNumber added in v1.0.8

type ErrorWithNumber interface {
	SQLErrorNumber() int32
}

type MSSQL

type MSSQL struct{}

func (MSSQL) BuildLimit

func (MSSQL) BuildLimit(limit int) *adapters.SQLPart

func (MSSQL) BuildOffset

func (MSSQL) BuildOffset(offset int) *adapters.SQLPart

func (MSSQL) DriverName

func (MSSQL) DriverName() string

func (MSSQL) FormatForNewValues added in v1.0.4

func (m MSSQL) FormatForNewValues(columns []string) []string

func (MSSQL) GetReturningPosition added in v1.0.4

func (m MSSQL) GetReturningPosition() adapters.ReturningPosition

func (MSSQL) IsOffsetFirst

func (MSSQL) IsOffsetFirst() bool

func (MSSQL) ParseError added in v1.0.8

func (MSSQL) ParseError(err error) error

func (MSSQL) Quote

func (MSSQL) Quote(identifier string) string

func (MSSQL) ReplacePlaceholders added in v1.0.7

func (MSSQL) ReplacePlaceholders(originalPlaceholder string, sql string) string

func (MSSQL) ReturningBuild added in v1.0.4

func (m MSSQL) ReturningBuild(columns []string) string

type Rowversion added in v1.0.4

type Rowversion struct {
	Version []uint8
}

Rowversion represents a rowversion (or timestamp) column type See https://docs.microsoft.com/en-us/sql/t-sql/data-types/rowversion-transact-sql

func (Rowversion) Copy added in v1.0.4

func (r Rowversion) Copy() Rowversion

Copy returns a copy of the given Rowversion

func (*Rowversion) Scan added in v1.0.4

func (r *Rowversion) Scan(value interface{}) error

Scan implements sql.Scanner

func (Rowversion) Value added in v1.0.4

func (r Rowversion) Value() (driver.Value, error)

Value implements driver.Valuer

Jump to

Keyboard shortcuts

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