db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultReadOnlyRocksDb

func NewDefaultReadOnlyRocksDb(dataDir string) (*gorocksdb.DB, error)

func NewDefaultRocksNormalDb

func NewDefaultRocksNormalDb(dataDir string) (*gorocksdb.DB, error)

func NewDefaultRocksTxDb

func NewDefaultRocksTxDb(dataDir string) (*gorocksdb.TransactionDB, error)

func NewMysqlDB

func NewMysqlDB(addr, user, password, dbName string, maxOpenConn, MaxIdleConn int) (*gorm.DB, error)

func NewRedisClient

func NewRedisClient(addr, password string, dbNum int) *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