package
Version:
v0.0.0-...-3e87f45
Opens a new window with list of versions in this module.
Published: Jun 17, 2022
License: MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
* @Author: NyanCatda
* @Date: 2022-03-24 14:04:35
* @LastEditTime: 2022-03-24 15:09:05
* @LastEditors: NyanCatda
* @Description: LevelDB封装
* @FilePath: \Momizi\Internal\Plugin\Tools\LevelDB\LevelDB.go
type DB struct {
Path string
}
*
- @description: 打开数据库连接
- @param {string} Path 数据库路径
- @return {*DB} 数据库连接
*
- @description: 关闭连接
- @param {*}
- @return {*}
*
- @description: 删除值
- @param {string} Key 键
- @return {error} 错误信息
*
- @description: 读取值
- @param {string} Key 键
- @return {string} 值
- @return {error} 错误信息
*
- @description: 获取键列表
- @param {Prefix} Prefix 前缀
- @return {[]string} 键
- @return {error} 错误信息
*
- @description: 写入值
- @param {string} Key 键
- @param {string} Value 值
- @return {error} 错误信息
Source Files
¶
Click to show internal directories.
Click to hide internal directories.