BoltDBKey/Value 數(shù)據(jù)存儲(chǔ)系統(tǒng)
Bolt 是一個(gè)使用 Go 語言開發(fā)的低級(jí) Key/Value 數(shù)據(jù)存儲(chǔ)系統(tǒng),簡(jiǎn)單、快速而且可靠。
示例代碼:
package main
import (
"log"
"github.com/boltdb/bolt"
)
func main() {
// Open the my.db data file in your current directory.
// It will be created if it doesn't exist.
db, err := bolt.Open("my.db", 0600, nil)
if err != nil {
log.Fatal(err)
}
defer db.Close()
...
}評(píng)論
圖片
表情
