How to extract key-value versioning from BBoltDB in ETCD as a Go Code? #16171
Unanswered
dev-vaayen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
Based on this GitHub document for BBoltDB, we can understand that Go Code be used to create a BBoltDB database on the system. The key-values added & operations done on them in that Go Code are stored in the BBoltDB database.
What if I want to do the reverse? In etcd, data is stored without prompting users to enter key-values in a go code as etcd uses etcdctl for allowing key-value input from command-line. Example -
etcdctl put KEY1 VALUE1
would stored VALUE1 under KEY1 in its database.This database where etcd stores its data is located in its snaps directory and is simply named as
db
. How can I convert thisdb
file into a go code?If I was unclear about anything, please let me know in the comments below.
Beta Was this translation helpful? Give feedback.
All reactions