Questions tagged [boltdb]

Bolt is a pure Go key/value store inspired by Howard Chu's and the LMDB project. The goal of the project is to provide a simple, fast, and reliable database for projects that don't require a full database server such as Postgres or MySQL.

Bolt is a pure Go key/value store inspired by Howard Chu's and the LMDB project. The goal of the project is to provide a simple, fast, and reliable database for projects that don't require a full database server such as Postgres or MySQL. View more at https://github.com/boltdb/bolt.

41 questions
0
votes
1 answer

golang and boltdb: using closures to wrap a bucket ForEach function

In my code I use alot of repeating code to iterate over nested buckets in a bolddb database. I would like to do some refactoring, wrapping these repeating codes into new functions. I know I need to use closures for this, but the extra db.View layer…
Timtico
  • 377
  • 1
  • 4
  • 14
0
votes
0 answers

Best way to index large file

I have a file with about 100gb with a word:tag per line. I want to index these on word to easily get the list of tags for a given word. I wanted to save this on boltdb (mainly to checkout boltdb) but random write access is bad so I was aiming to…
Filipe Pina
  • 2,201
  • 23
  • 35
0
votes
1 answer

boltdb unexpected fault address when trying to copy

I have the following program. package main import ( "fmt" "log" "github.com/boltdb/bolt" ) const dbFile = "testbolt.db" const testBucket = "test" func main() { db, err := bolt.Open(dbFile, 0600, nil) if err != nil { …
3tbraden
  • 667
  • 1
  • 10
  • 21
0
votes
0 answers

Sortedness of Bolt DB items

I am planning on implementing a queue and persisting the objects into a Bolt DB instance. I was wondering how to determine the sortedness of the items when reloading my application and determining head/tail. To quote the Bolt DB project on insertion…
jim
  • 8,670
  • 15
  • 78
  • 149
0
votes
1 answer

Find one in Bolt

I have a Golang project and I am using Bolt as my Database. I found and started to use This project to handle the connection and operations over the database. My current problem is that I cannot make a search by one field and get one result. My…
Sredny M Casanova
  • 4,735
  • 21
  • 70
  • 115
0
votes
1 answer

Does exist any BoltDB Ruby gem binding?

Bolt is an amazing embedded key/value database for Go: https://www.progville.com/go/bolt-embedded-db-golang/ https://github.com/boltdb/bolt There is any binding (gem) for Ruby language ?
Giorgio Robino
  • 2,148
  • 6
  • 38
  • 59
0
votes
0 answers

BoltDB Building Offline

So I have some work I need to do behind a corporate firewall and I am new to building Go Apps. The only go app I have worked with has already been built and ready to use. I wanted to play with BoltDB but the problem is that I can't install it…
theMadKing
  • 2,064
  • 7
  • 32
  • 59
0
votes
1 answer

golang http handler context

I'm trying to understand variable scopes in golang with the following code. In this example, calling in http a page will echo the uri query combined with a stored value in Boltdb. The problem is that the database driver doesn't seem to run correctly…
user494599
-1
votes
1 answer

"unresolve reference errors" in golang

I am currently working on Go Microservices with BoltDB. How to resolve "unresolve reference errors" in golang? I have the following Go code: // Start seeding accounts //Funtion Seed Gives me error as the functions which i passed in Seed Functions…
-2
votes
1 answer

How can I ensure that all of my write transaction functions get resolved in order? Also, why is the else function not executing?

I'm trying to create a very simple Bolt database called "ledger.db" that includes one Bucket, called "Users", which contains Usernames as a Key and Balances as the value that allows users to transfer their balance to one another. I am using Bolter…
-2
votes
2 answers

How to read from a BoltDB using Python?

I have a Go web app which stores some data in a built-in BoltDB. Is there any way to read the content of it using Python?
Benyamin Jafari
  • 27,880
  • 26
  • 135
  • 150
1 2
3