kantadb:用go编写的数据库

时间:2021-04-17 02:13:19
【文件属性】:
文件名称:kantadb:用go编写的数据库
文件大小:15KB
文件格式:ZIP
更新时间:2021-04-17 02:13:19
Go 坎塔 用纯Go编写的Go的可嵌入数据库。 它基于LSM树,这意味着它更适合高写入和低读取。 数据库包含内存表和其他内容的日志形式的容错功能。 使用简单 您首先需要安装它: go get -u github.com/nireo/kantadb 那么基本用法是: package main import ( "log" "github.com/nireo/kantadb" ) func main () { db := kantadb . New ( kantadb . DefaultOptions ()) defer db . Stop () db . Run () // put a value db . Put ( "hello" , "world" ) // get the value value , ok :=
【文件预览】:
kantadb-main
----sstable()
--------sstable.go(3KB)
----mem()
--------mem.go(3KB)
--------mem_test.go(837B)
----kantadb.go(10KB)
----LICENSE(1KB)
----kantadb_test.go(5KB)
----go.sum(702B)
----README.md(1KB)
----utils()
--------debug_print.go(498B)
--------helpers.go(827B)
----entries()
--------entries.go(4KB)
--------entries_test.go(3KB)
----go.mod(251B)

网友评论