// Open opens a new Bolt connection to the Neo4J database
func (d *boltDriver) Open(connStr string) (driver.Conn, error) {
return newBoltConn(connStr, d) // Never use pooling when using SQL driver
}
// Open opens a new Bolt connection to the Neo4J database. Implements a Neo-friendly alternative to sql/driver.
func (d *boltDriver) OpenNeo(connStr string) (Conn, error) {
return newBoltConn(connStr, d)
}
我看驱动包里API中入参只有一个string类型参数,请问那个连接数据库需要的用户名和密码应该在哪里写呢?
有疑问加站长微信联系(非本文作者)