Documentation ¶
Overview ¶
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Index ¶
- func AddObject(_tableKey string, a any)
- func AddValue(key string, value []byte) error
- func BuildIndex[T any]() (err error, _r string)
- func DelKey(key string) (err error)
- func Delete(a any) (err error)
- func DeleteWithId[T any](id int64) (err error)
- func DeleteWithKey(table_key string) (err error)
- func GetAndSetId[T any](_idx_seq string) (id int64)
- func GetIdSeqValue[T any]() (id int64)
- func GetObjectByOrder[T any](_tablename, _idx_id_name string, startId, count int64) (ts []*T)
- func GetValue(key string) (value []byte, err error)
- func Insert(a any) (err error)
- func SelectByIdxName[T any](idx_name, _idx_value string) (_r []*T)
- func SelectByIdxNameLimit[T any](idx_name string, idxValues []string, startId, limit int64) (_r []*T)
- func SelectOne[T any](_id int64) (_r *T)
- func SelectOneByIdxName[T any](idx_name, _idx_value string) (_r *T)
- func Selects[T any](start, end int64) (_r []*T)
- func Table[T any](dbname string) _Table[T]
- func Update(a any) (err error)
- type BakStub
- type DBEngine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIndex ¶
func DeleteWithId ¶
func DeleteWithKey ¶
func GetAndSetId ¶
func GetIdSeqValue ¶
func GetObjectByOrder ¶
func SelectByIdxNameLimit ¶
func SelectByIdxNameLimit[T any](idx_name string, idxValues []string, startId, limit int64) (_r []*T)
idx_name : index name idxValues: index value array startId : start number limit : maximum return number
Types ¶
type DBEngine ¶
type DBEngine interface { Open() (err error) Close() (err error) Has(key []byte) (b bool) Put(key, value []byte) (err error) Get(key []byte) (value []byte, err error) Del(key []byte) (err error) GetString(key []byte) (value string, err error) Batch(put map[string][]byte, del []string) (err error) GetLike(prefix []byte) (datamap map[string][]byte, err error) GetKeys() (bys []string, err error) GetKeysPrefix(prefix []byte) (bys []string, err error) GetKeysPrefixLimit(prefix []byte, limit int) (bys []string, err error) GetIterLimit(prefix string, limit string) (datamap map[string][]byte, err error) }