mssql¶
import "github.com/go-rel/mssql"
Overview¶
Package mssql wraps mssql driver as an adapter for REL.
Constants¶
const Name string = "mssql"
func MustOpen¶
func MustOpen(dsn string) rel.Adapter
func New¶
func New(db *db.DB) rel.Adapter
func Open¶
func Open(dsn string) (rel.Adapter, error)
type MSSQL¶
type MSSQL struct {
sql.SQL
}
func (MSSQL) Begin¶
func (m MSSQL) Begin(ctx context.Context) (rel.Adapter, error)
func (MSSQL) Insert¶
func (m MSSQL) Insert(ctx context.Context, query rel.Query, primaryField string, mutates map[string]rel.Mutate, onConflict rel.OnConflict) (interface{}, error)
func (MSSQL) InsertAll¶
func (m MSSQL) InsertAll(ctx context.Context, query rel.Query, primaryField string, fields []string, bulkMutates []map[string]rel.Mutate, onConflict rel.OnConflict) ([]interface{}, error)
func (MSSQL) Name¶
func (MSSQL) Name() string
Last update: 2024-12-19