Golang – Package – denisenkom – go-mssqldb

Background

Evaluating how amenable Denisenkom’s go-mssqldb Go package is for golang interoperability with Microsoft SQL Server.

Outline

  1. Identify Package Source
  2. Download Package
  3. Install Package
  4. Review Installed Package

 

Identify Package Source

The Golang package is available @

https://github.com/denisenkom/go-mssqldb

Link

 

Download Package Source

Outline

  1. Available Options
    • Git
      • git clone
    • Go
      • go get

 

Git

Git Clone

Information

We chose the git clone option.

Syntax


git clone [git-repository]

Sample


git clone https://github.com/denisenkom/go-mssqldb

 

Output

Output – Image


Output – Text

>git clone https://github.com/denisenkom/go-mssqldb
Cloning into 'go-mssqldb'...
remote: Enumerating objects: 2560, done.
remote: Total 2560 (delta 0), reused 0 (delta 0), pack-reused 2560R
Receiving objects: 100% (2560/2560), 5.20 MiB | 453.00 KiB/s, done.
Resolving deltas: 100% (1665/1665), done.

 

Go

Go Get

Information

Have yet to get “go get” to work successfully.

Syntax


go get [git-repository]

Sample


go get github.com/denisenkom/go-mssqldb

Install Package

Outline

  1. Available Options
    • Go
      • go install

 

Go

go install

Information

We chose the git clone option.

Syntax


go install

Sample


go install

 

Output

Output – Image


Output – Text

go: downloading github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe

Review Installed Packages

Outline

  1. Available Options
    • Go
      • go list

 

Go

go list

Syntax


go list

Sample

Sample – OS – MS Windows

Command

go list ... | find "go-mssqldb"

 

Output
Output – Image


Output – Text

go list ... | find "go-mssqldb"
github.com/denisenkom/go-mssqldb
github.com/denisenkom/go-mssqldb/batch
github.com/denisenkom/go-mssqldb/examples/azuread-accesstoken
github.com/denisenkom/go-mssqldb/examples/bulk
github.com/denisenkom/go-mssqldb/examples/routine
github.com/denisenkom/go-mssqldb/examples/simple
github.com/denisenkom/go-mssqldb/examples/tsql
github.com/denisenkom/go-mssqldb/examples/tvp
github.com/denisenkom/go-mssqldb/internal/cp
github.com/denisenkom/go-mssqldb/internal/decimal
github.com/denisenkom/go-mssqldb/internal/querytext

 

Explanation

By issuing go list, we can see that the go-mssqldb package is installed

 

References

  1. denisenkom
    • GitHub – denisenkom
      Link
    • GitHub – denisenkom – Repository – go-mssqldb
      Link

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s