db: github.com/upper/db/adapter/mssql Index | Files

package mssql

import "github.com/upper/db/adapter/mssql"

Package mssql wraps the github.com/go-sql-driver/mssql MySQL driver. See https://github.com/upper/db/adapter/mssql for documentation, particularities and usage examples.

Index

Package Files

collection.go connection.go database.go mssql.go template.go

Constants

const Adapter = `mssql`

Adapter is the public name of the adapter.

func New Uses

func New(sqlDB *sql.DB) (db.Session, error)

New creates a sqlbuilder.Sesion instance by wrapping a *sql.DB value.

func NewTx Uses

func NewTx(sqlTx *sql.Tx) (sqlbuilder.Tx, error)

NewTx creates a sqlbuilder.Tx instance by wrapping a *sql.Tx value.

func Open Uses

func Open(connURL db.ConnectionURL) (db.Session, error)

Open establishes a connection to the database server and returns a db.Session instance (which is compatible with db.Session).

type ConnectionURL Uses

type ConnectionURL struct {
    User     string
    Password string
    Database string
    Host     string
    Socket   string
    Options  map[string]string
}

ConnectionURL implements a MSSQL connection struct.

func ParseURL Uses

func ParseURL(s string) (conn ConnectionURL, err error)

ParseURL parses s into a ConnectionURL struct.

func (ConnectionURL) String Uses

func (c ConnectionURL) String() (s string)

Package mssql imports 10 packages (graph). Updated 2021-01-26. Refresh now. Tools for package owners.