rlink

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LinkMongoDB

func LinkMongoDB(dbName string, accPassword rpwd.AccountAndPassword) (*mongo.Database, error)

LinkMongoDB 连接 MongoDB 数据库,返回 *mongo.Database

func LinkMySQL

func LinkMySQL(dbName string, logModel string, closeAffair bool, accPassword rpwd.AccountAndPassword) (*gorm.DB, error)

LinkMySQL 连接MySQL数据库,返回 *gorm.DB

func LinkRedis

func LinkRedis(dbNumber uint, accPassword rpwd.AccountAndPassword) (*redis.Client, error)

LinkRedis 连接Redis数据库,返回 *redis.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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