sqlserver

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName is the name of the plugin
	// and it is used for sql.Connect to specify the driver name
	PluginName = "sqlserver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataConverter

type DataConverter interface {
	ToServerDateTime(t time.Time) time.Time
	FromServerDateTime(t time.Time) time.Time
}

DataConverter defines the API for conversions to/from go types and this driver's datatypes. Time is in UTC.

type Plugin added in v1.16.1

type Plugin struct{}

Plugin type to be uesd from external tests

func (*Plugin) CreateAdminDB added in v1.16.1

func (d *Plugin) CreateAdminDB(
	dbKind sqlplugin.DbKind,
	cfg *config.SQL,
	r resolver.ServiceResolver,
) (sqlplugin.AdminDB, error)

CreateAdminDB initialize the adminDB object

func (*Plugin) CreateDB added in v1.16.1

func (d *Plugin) CreateDB(
	dbKind sqlplugin.DbKind,
	cfg *config.SQL,
	r resolver.ServiceResolver,
) (sqlplugin.DB, error)

CreateDB initialize the db object

Jump to

Keyboard shortcuts

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