Popularity
0.9
Stable
Activity
6.7
-
1
3
3

Programming language: Go
License: MIT License
Tags: SQL     Database     Relational Databases     Database Drivers     ORM    

mssql alternatives and similar packages

Based on the "Database" category.
Alternatively, view mssql alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of mssql or a related project?

Add another 'Database' Package

README

mssql

GoDoc Integration Go Report Card codecov Gitter chat

Microsoft SQL Server adapter for REL.

Example

package main

import (
    "context"

    _ "github.com/denisenkom/go-mssqldb"
    "github.com/go-rel/mssql"
    "github.com/go-rel/rel"
)

func main() {
    // open mssql connection.
    adapter, err := mssql.Open("sqlserver://sa:REL2021-mssql@localhost:1433?database=rel")
    if err != nil {
        panic(err)
    }
    defer adapter.Close()

    // initialize REL's repo.
    repo := rel.New(adapter)
    repo.Ping(context.TODO())
}

Supported Driver

  • github.com/denisenkom/go-mssqldb

Supported Database

  • Microsoft SQL Server 2017
  • Microsoft SQL Server 2019

Testing

Start Microsoft SQL server in Docker

docker run -it --rm -p 1434:1433 -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=REL2021-mssql" -e "MSSQL_PID=Developer"  mcr.microsoft.com/mssql/server:2019-latest

Run tests

MSSQL_DATABASE="sqlserver://sa:REL2021-mssql@localhost:1434" go test ./...