Documentation ¶
Overview ¶
Package mssql 实现了 gdb.Driver 接口,该接口支持对 MSSql 数据库进行操作。
注意: 1. 不支持 Save/Replace 功能。 2. 不支持 LastInsertId 功能。 以下是将上述Go语言代码注释翻译成中文: ```markdown 这个mssql包实现了gdb.Driver接口,主要用于对MSSql数据库的各种操作提供支持。
注意事项: 1. 该实现暂不支持Save/Replace功能。 2. 该实现暂不支持LastInsertId方法。
Index ¶
- func New() db类.Driver
- type Driver
- func (d *Driver) New(core *db类.Core, node *db类.X配置项) (db类.DB, error)
- func (d *Driver) X取表名称数组(上下文 context.Context, schema ...string) (表名称数组 []string, 错误 error)
- func (d *Driver) X取表字段信息Map(上下文 context.Context, 表名称 string, schema ...string) (字段信息Map map[string]*db类.TableField, 错误 error)
- func (d *Driver) X底层DoFilter(ctx context.Context, link db类.Link, sql string, args []interface{}) (newSql string, newArgs []interface{}, err error)
- func (d *Driver) X底层Open(配置对象 *db类.X配置项) (db *sql.DB, 错误 error)
- func (d *Driver) X底层取数据库安全字符() (左字符 string, 右字符 string)
- func (d *Driver) X底层插入(上下文 context.Context, 链接 db类.Link, 表名称 string, ...) (结果 sql.Result, 错误 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct {
*db类.Core
}
Driver 是 SQL 服务器数据库的驱动程序。
func (*Driver) X取表字段信息Map ¶
func (d *Driver) X取表字段信息Map(上下文 context.Context, 表名称 string, schema ...string) (字段信息Map map[string]*db类.TableField, 错误 error)
TableFields 获取并返回当前模式下指定表的字段信息。
另请参阅 DriverMysql.TableFields。
func (*Driver) X底层DoFilter ¶
func (d *Driver) X底层DoFilter(ctx context.Context, link db类.Link, sql string, args []interface{}) (newSql string, newArgs []interface{}, err error)
DoFilter 在将 SQL 字符串提交给底层 SQL 驱动程序之前,对其进行处理。
func (*Driver) X底层取数据库安全字符 ¶
GetChars 返回该类型数据库的安全字符。
Click to show internal directories.
Click to hide internal directories.