10 Star 43 Fork 10

gohouse/gorose

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
builder_mssql.go 897 Bytes
一键复制 编辑 原始数据 按行查看 历史
fizzday 提交于 2019-06-26 20:29 . driver added
package gorose
type BuilderMsSql struct {
//IOrm
driver string
}
// sqlstr := fmt.Sprintf("SELECT %s%s FROM %s%s%s%s%s%s%s%s",
// distinct, fields, table, join, where, group, having, order, limit, offset)
// select {distinct} {fields} from {table} {join} {where} {group} {having} {order} {limit} {offset}
// {execute} {table} {data} {where}
func init() {
var driver = "mssql"
var builder = &BuilderMsSql{driver: driver}
NewBuilderDriver().Register(driver, builder)
}
// BuildQuery : build query sql string
func (b *BuilderMsSql) BuildQuery(o IOrm) (sqlStr string, args []interface{}, err error) {
return NewBuilderDefault(o).SetDriver(b.driver).BuildQuery()
}
// BuildExecut : build execute sql string
func (b *BuilderMsSql) BuildExecute(o IOrm, operType string) (sqlStr string, args []interface{}, err error) {
return NewBuilderDefault(o).SetDriver(b.driver).BuildExecute(operType)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/gohouse/gorose.git
git@gitee.com:gohouse/gorose.git
gohouse
gorose
gorose
master

搜索帮助