go-ozzo / ozzo-dbx

A Go (golang) package that enhances the standard database/sql package by providing powerful data retrieval methods as well as DB-agnostic query building capabilities.
MIT License
638 stars 91 forks source link

Added 'sqlite' key to db.BuilderFuncMap for noncgo sqlite driver support #102

Open ganigeorgiev opened 2 years ago

ganigeorgiev commented 2 years ago

The noncgo sqlite driver (https://pkg.go.dev/modernc.org/sqlite) uses sqlite as driver key. This PR adds the key to the db.BuilderFuncMap, so that users don't have to do:

func init() {
    dbx.BuilderFuncMap["sqlite"] = dbx.BuilderFuncMap["sqlite3"]
}