gdb

package
v0.0.0-...-956c397 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

* @Author: Wangjun * @Date: 2022-08-19 16:17:31 * @LastEditTime: 2023-06-02 10:22:39 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\gdb\clickhouse.go * hnxr

* @Author: Wangjun * @Date: 2022-08-19 16:20:35 * @LastEditTime: 2022-08-19 16:20:58 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\gdb\mysql.go * hnxr

* @Author: Wangjun * @Date: 2022-08-19 16:21:45 * @LastEditTime: 2022-08-19 16:35:42 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\gdb\openplant.go * hnxr

* @Author: Wangjun * @Date: 2022-08-19 16:19:26 * @LastEditTime: 2022-08-19 16:20:03 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\gdb\sqlite3.go * hnxr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClickhouse

func GetClickhouse(dsn string) (db *gorm.DB, err error)

获取clickhouse数据库驱动

func GetMysql

func GetMysql(dsn string) (db *gorm.DB, err error)

func GetOpenplant

func GetOpenplant(dsn string) (db *gorm.DB, err error)

func GetSqlite3

func GetSqlite3(dsn string) (db *gorm.DB, err error)

func LoadDB

func LoadDB(dbType, dsn string) (db *gorm.DB, err error)

LoadDB 加载的DB

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL