【文件属性】:
文件名称:flydb:纯格式的纯Go数据库
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-21 06:47:29
Go
飞行数据库
In progress...
具有简单格式的Pure Go数据库。
特征
支持不同的数据文件格式: JSON , YAML , XML
强大的访问API
限度
性能:flydb不是为提高性能而构建的,因此您可能不希望将其用于海量数据
用法
嵌入Golang
package main
import (
"github.com/flydb/flydb"
"log"
)
func main () {
db , err := flydb . Open ( "/path/to/db.json" )
if err != nil {
fmt . Errorf ( "cannot open database" )
}
email := db . Root (). MustGet ( "users.3.email" ). M
【文件预览】:
flydb-master
----format_xml_test.go(276B)
----.gitignore(10B)
----format_yaml.go(2KB)
----flydb()
--------main.go(1KB)
----format_xml.go(629B)
----format_json.go(639B)
----.travis.yml(46B)
----server.go(2KB)
----node.go(5KB)
----LICENSE(1KB)
----node_value.go(3KB)
----database_test.go(1KB)
----node_wrap.go(849B)
----path.go(521B)
----node_map.go(1KB)
----node_test.go(554B)
----examples()
--------server()
--------main.go(413B)
--------db.json(302B)
----format_ini.go(98B)
----format_test.go(998B)
----README.md(3KB)
----format_yaml_test.go(223B)
----tests()
--------autosave.json(20B)
--------db.json(302B)
--------tmp()
----node_array.go(2KB)
----format_json_test.go(223B)
----client.go(99B)
----format.go(1KB)
----type_convert.go(2KB)
----config.go(825B)
----database.go(2KB)