fix issue missing mysql driver import for package contrib/drivers/mysql

This commit is contained in:
John Guo
2022-05-19 15:02:15 +08:00
parent 07509e9847
commit 853d7aaf8f
4 changed files with 8 additions and 6 deletions

View File

@ -13,14 +13,14 @@
package mssql
import (
_ "github.com/denisenkom/go-mssqldb"
"context"
"database/sql"
"fmt"
"strconv"
"strings"
_ "github.com/denisenkom/go-mssqldb"
"github.com/gogf/gf/v2/container/gmap"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/errors/gcode"

View File

@ -13,6 +13,8 @@ import (
"fmt"
"net/url"
_ "github.com/go-sql-driver/mysql"
"github.com/gogf/gf/v2/container/gmap"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/errors/gcode"

View File

@ -13,8 +13,6 @@
package oracle
import (
_ "github.com/mattn/go-oci8"
"context"
"database/sql"
"fmt"
@ -23,6 +21,8 @@ import (
"strings"
"time"
_ "github.com/mattn/go-oci8"
"github.com/gogf/gf/v2/container/gmap"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/errors/gcode"

View File

@ -12,13 +12,13 @@
package sqlite
import (
_ "github.com/mattn/go-sqlite3"
"context"
"database/sql"
"fmt"
"strings"
_ "github.com/mattn/go-sqlite3"
"github.com/gogf/gf/v2/container/gmap"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/errors/gcode"