mssql

package
v0.0.0-...-c9d2023 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 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

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

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

func (MSSQL) GetReturningPosition

func (m MSSQL) GetReturningPosition() adapters.ReturningPosition

func (MSSQL) IsOffsetFirst

func (MSSQL) IsOffsetFirst() bool

func (MSSQL) ParseError

func (MSSQL) ParseError(err error) error

func (MSSQL) Quote

func (MSSQL) Quote(identifier string) string

func (MSSQL) ReplacePlaceholders

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

func (MSSQL) ReturningBuild

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

type Rowversion

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

func (r Rowversion) Copy() Rowversion

Copy returns a copy of the given Rowversion

func (*Rowversion) Scan

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

Scan implements sql.Scanner

func (Rowversion) Value

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