Add example using driverName
This commit is contained in:
committed by
mattn
parent
c0fa5ea6d6
commit
671e666c2e
13
_example/custom_driver_name/main.go
Normal file
13
_example/custom_driver_name/main.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
func main() {
|
||||
for _, driver := range sql.Drivers() {
|
||||
println(driver)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user