-
gsql:GolangSQL ORM下载
资源介绍
gsql
golang SQL ORM
import (
"fmt"
"github.com/BlueStorm001/gsql"
mssql "github.com/denisenkom/go-mssqldb"
_ "github.com/go-sql-driver/mysql"
)
func MSSqlDrive ( s * datatable. Serve ) ( db * sql. DB , err error ) {
connString := fmt . Sprintf ( "server=%s;database=%s;user id=%s;password=%s;port=%d" , s . Host , s . Database , s . Auth . User , s . Auth . Pass , s . Port )