手动编辑boltdb文件

huangapple go评论93阅读模式
英文:

Manually edit boltdb file

问题

我有一个用golang编写的应用程序,我想创建一个内置数据库,我选择了boltdb我有一些初始数据,我想手动将其种入数据库中。我有一个名为database.db的文件,我想往里面添加一些数据。

当我打开这个文件时,我看到很多'NUL'字样。我该如何手动编辑.db文件?

英文:

I have an app written on golang and I want to create a builin database, I've selected boltdb. I have some init data that I want to seed into database manually. I have database.db file and I want to put some data into it.

When I open this file - I see many 'NUL' words. How can I edit .db file manually?

答案1

得分: 0

你不能手动编辑它,你必须编写代码来自动完成这个任务。

英文:

You can't edit it manually, you have to write code code that'd do that for you.

huangapple
  • 本文由 发表于 2016年3月7日 16:41:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/35839391.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定