feat(database): 添加数据库驱动支持并更新依赖
- 新增 drivers 包用于注册 GF ORM 数据库驱动 - 集成 ClickHouse、MSSQL、MySQL、Oracle、PostgreSQL、SQLite 等数据库驱动 - 更新 go.mod 添加必要的数据库驱动依赖包 - 同步更新 go.sum 文件包含所有新增依赖的校验和
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
|
||||
//
|
||||
// This Source Code Form is subject to the terms of the MIT License.
|
||||
// If a copy of the MIT was not distributed with this file,
|
||||
// You can obtain one at https://github.com/gogf/gf.
|
||||
|
||||
// Package drivers provides database drivers registration for GF ORM.
|
||||
// This package automatically registers common database drivers when imported.
|
||||
package drivers
|
||||
|
||||
import (
|
||||
_ "github.com/gogf/gf/contrib/drivers/clickhouse/v2"
|
||||
_ "github.com/gogf/gf/contrib/drivers/mssql/v2"
|
||||
_ "github.com/gogf/gf/contrib/drivers/mysql/v2"
|
||||
_ "github.com/gogf/gf/contrib/drivers/oracle/v2"
|
||||
_ "github.com/gogf/gf/contrib/drivers/pgsql/v2"
|
||||
_ "github.com/gogf/gf/contrib/drivers/sqlite/v2"
|
||||
)
|
||||
Reference in New Issue
Block a user