db.v3: upper.io/db.v3/mssql Index | Files

package mssql

import "upper.io/db.v3/mssql"

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

Index

Package Files

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

Constants

const Adapter = sqlDriver

Adapter is the public name of the adapter.

func New Uses

func New(sess *sql.DB) (sqlbuilder.Database, error)

New wraps the given *sql.DB session and creates a new db session.

func NewTx Uses

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

NewTx wraps a regular *sql.Tx transaction and returns a new upper-db transaction backed by it.

func Open Uses

func Open(settings db.ConnectionURL) (sqlbuilder.Database, error)

Open stablishes a new connection with the SQL server.

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 13 packages (graph). Updated 2018-09-30. Refresh now. Tools for package owners.