types

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDbStr  = "leveldb"
	PebbleDbStr = "pebbledb"
)

Variables

This section is empty.

Functions

func GetDbName

func GetDbName(t DBEngineType) string

db类型int->string

Types

type DBEngineType

type DBEngineType int32
const (
	//UnknownDb don't know database
	UnknownDb DBEngineType = iota
	//LevelDb LevelDb
	LevelDb
	// PebbleDb PebbleDb
	PebbleDb
)

func GetExistDBType

func GetExistDBType(file string) DBEngineType

判断路径下是否存在数据库文件

func ParseDbType

func ParseDbType(str string) (DBEngineType, error)

db类型string->int

Jump to

Keyboard shortcuts

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