aboutsummaryrefslogtreecommitdiff
path: root/_example/custom_driver_name/main.go
diff options
context:
space:
mode:
Diffstat (limited to '_example/custom_driver_name/main.go')
-rw-r--r--_example/custom_driver_name/main.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/_example/custom_driver_name/main.go b/_example/custom_driver_name/main.go
new file mode 100644
index 0000000..3148cae
--- /dev/null
+++ b/_example/custom_driver_name/main.go
@@ -0,0 +1,13 @@
+package main
+
+import (
+ "database/sql"
+
+ _ "github.com/mattn/go-sqlite3"
+)
+
+func main() {
+ for _, driver := range sql.Drivers() {
+ println(driver)
+ }
+}