Documentation
¶
Overview ¶
Package mssql wraps mssql driver as an 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())
}
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.
