kissdb: bitbucket.org/8ox86/kissdb Index | Files

package kissdb

import "bitbucket.org/8ox86/kissdb"

* ===================================================================================== * * Package: kissdb * Filename: kissdb.go * * Description: go-kissdb * * Created: 7/2/18 9:11 PM * * Author: hacklog * URL: http://80x86.io * * =====================================================================================

Index

Package Files

kissdb.go

Constants

const (
    /**
    * Open mode: read only
     */
    KISSDB_OPEN_MODE_RDONLY = C.KISSDB_OPEN_MODE_RDONLY

    /**
     * Open mode: read/write
     */
    KISSDB_OPEN_MODE_RDWR = C.KISSDB_OPEN_MODE_RDWR

    /**
     * Open mode: read/write, create if doesn't exist
     */
    KISSDB_OPEN_MODE_RWCREAT = C.KISSDB_OPEN_MODE_RWCREAT

    /**
     * Open mode: truncate database, open for reading and writing
     */
    KISSDB_OPEN_MODE_RWREPLACE = C.KISSDB_OPEN_MODE_RWREPLACE
)
const COK = 0

Variables

var IS_DEBUG = false

func Close Uses

func Close(db *C.KISSDB)

func DbgPrintf Uses

func DbgPrintf(fmt string, val ...interface{})

func Get Uses

func Get(db *C.KISSDB, key string, value *string) bool

func GetVersion Uses

func GetVersion() int

func New Uses

func New() *C.KISSDB

func Open Uses

func Open(db *C.KISSDB, path string, mode int, hash_table_size, key_size, value_size uint32) bool

func Put Uses

func Put(db *C.KISSDB, key string, value string) bool

Package kissdb imports 3 packages (graph). Updated 2018-07-17. Refresh now. Tools for package owners.