3 Star 10 Fork 2

jf / sql-pg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pg_driver.go 538 Bytes
一键复制 编辑 原始数据 按行查看 历史
blusewang 提交于 2021-12-05 14:56 . 修正若干问题,并优化代码
// Copyright 2019 MQ, Inc. All rights reserved.
//
// Use of this source code is governed by a MIT license
// that can be found in the LICENSE file in the root of the source
// tree.
package pg
import (
"database/sql/driver"
driver2 "github.com/blusewang/pg/internal/driver"
)
type Driver struct {
}
func (d *Driver) Open(name string) (driver.Conn, error) {
// 此接口似乎已废弃
return driver2.NewPgConn(name)
}
func (d *Driver) OpenConnector(name string) (driver.Connector, error) {
return &Connector{Name: name}, nil
}
Go
1
https://gitee.com/bluse/sql-pg.git
git@gitee.com:bluse/sql-pg.git
bluse
sql-pg
sql-pg
master

搜索帮助