This is an implementation of the LevelDB key/value database in the Go programming language. Package leveldb provides an implementation of LevelDB key/value database. OpenFile opens or creates a DB for the given path. The DB will be created if not exist, unless ErrorIfMissing is true. Also, if ErrorIfExist is true and the DB exist OpenFile will returns os.ErrExist error. OpenFile uses standard file-system backed storage implementation as described in the leveldb/storage package. OpenFile will return an error with type of ErrCorrupted if corruption is detected in the DB. Use errors.IsCorrupted to test whether an error is due to corruption. Corrupted DB can be recovered with Recover function. CompactRange compacts the underlying DB for the given key range. In particular, deleted and overwritten versions are discarded, and the data is rearranged to reduce the cost of operations needed to access the data.

Features

  • Need at least go1.5 or newer
  • Create or open a database
  • Read or modify the database content
  • Iterate over database content
  • Seek-then-Iterate
  • Iterate over subset of database content
  • Iterate over subset of database content with a particular prefix

Project Samples

Project Activity

See All Activity >

Categories

Database

License

BSD License

Follow goleveldb

goleveldb Web Site

You Might Also Like
Achieve perfect load balancing with a flexible Open Source Load Balancer Icon
Achieve perfect load balancing with a flexible Open Source Load Balancer

Take advantage of Open Source Load Balancer to elevate your business security and IT infrastructure with a custom ADC Solution.

Boost application security and continuity with SKUDONET ADC, our Open Source Load Balancer, that maximizes IT infrastructure flexibility. Additionally, save up to $470 K per incident with AI and SKUDONET solutions, further enhancing your organization’s risk management and cost-efficiency strategies.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of goleveldb!

Additional Project Details

Programming Language

Go

Related Categories

Go Database Software

Registered

2021-12-28