fork github.com/doug-martin
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package postgres
|
||||
|
||||
import "git.fsdpf.net/go/db/v2"
|
||||
|
||||
func DialectOptions() *db.SQLDialectOptions {
|
||||
do := db.DefaultDialectOptions()
|
||||
do.PlaceHolderFragment = []byte("$")
|
||||
do.IncludePlaceholderNum = true
|
||||
return do
|
||||
}
|
||||
|
||||
func init() {
|
||||
db.RegisterDialect("postgres", DialectOptions())
|
||||
}
|
||||
Reference in New Issue
Block a user