sqlserver

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package sqlserver 实现 Microsoft SQL Server 数据库驱动(纯 Go,经 go-mssqldb,无 CGO)。

兼容性:go-mssqldb 是微软官方维护的纯 Go 驱动,无需 ODBC Driver,无需 CGO。 覆盖 SQL Server 2017 / 2019 / 2022(实测 2017 与 2022)。

本包在被 import 时通过 init() 自动注册到 driver 注册表,注册名 "sqlserver"。 CLI 在 main 里空导入本包即生效。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct{}

Driver 实现 driver.Driver,注册名 "sqlserver"。

func (*Driver) Description

func (d *Driver) Description() string

func (*Driver) Name

func (d *Driver) Name() string

func (*Driver) Open

func (d *Driver) Open(cfg *driver.DatasourceConfig) (driver.Conn, error)

Open 依据配置创建连接。

func (*Driver) SupportedVersions

func (d *Driver) SupportedVersions() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL