mssql

package
v0.0.0-...-c298ef9 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTester

func NewTester() (api.DbTester, error)

NewTester creates a new instance of the MSSQL DB tester

Types

type MssqlTester

type MssqlTester struct {
	sql_db_tester.SqlDatabaseTester
	// contains filtered or unexported fields
}

MssqlTester is a wrapping struct around the basic SQL tester

func (*MssqlTester) Connect

func (tester *MssqlTester) Connect(options api.DbTesterOptions) error

Connect is used to initialize a testing connection to the SQL database

func (*MssqlTester) GetQueryMarkers

func (tester *MssqlTester) GetQueryMarkers(length int) string

GetQueryMarkers returns part of the query string that will be paramerized as it's different between databases. In this case, the params are defined using `@p<num>`.

Jump to

Keyboard shortcuts

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