Documentation ¶
Index ¶
- Constants
- func AppError(code int) string
- func Close() string
- func Delete(key string) string
- func Export(key, fileName string) string
- func Get(key, format string) string
- func Open(file string) string
- func Set(key, value string) string
- func ShowByPrefix(prefix, format string) string
- func ShowByRange(start, limit, format string) string
- func ShowLimit(limit int, format string) string
Constants ¶
const ErrCouldNotCloseDatabase = 1006
const ErrDbDoesNotOpen = 1001
const ErrKeyIsEmpty = 1004
const ErrKeyNotFound = 1007
const ErrOpeningDatabase = 1002
const ErrUnableToDelete = 1005
const ErrUnableToWrite = 1003
const FileWriteErr = 1008
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close() string
Command close the database. It is safe to close the database file leveldb.
Returns a string containing information about the result of the operation.
func Delete ¶
Command deleting records. The command to remove records from the database by key.
Returns a string containing information about the result of the operation.
func Export ¶
The command exports a value for the selected key to file with specified filename.
Returns a string containing information about the result of the operation.
func Get ¶
The command get a value. It gets the value for the selected key.
Returns a string containing information about the result of the operation.
func Open ¶
The command to open the database. If the database does not exist, it will create a new database.
Returns a string containing information about the result of the operation.
func Set ¶
The command set a value. It sets the value for the selected key.
Returns a string containing information about the result of the operation.
func ShowByPrefix ¶
It shows the contents of the database prefix filtering. Use the field `format` for specifying the display format of data. The list of possible values of format options: raw (default), geohash, bson, int64, float64
Returns a string containing information about the result of the operation.
func ShowByRange ¶
It shows the contents of the database range filtering. Use the field `format` for specifying the display format of data. The list of possible values of format options: raw (default), geohash, bson, int64, float64
Returns a string containing information about the result of the operation.
func ShowLimit ¶
ShowLimit It shows all content of the database limited by the limit. Use the field `format` for specifying the display format of data. The list of possible values of format options: raw (default), geohash, bson, int64, float64
Returns a string containing information about the result of the operation.
Types ¶
This section is empty.