GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alexandrestein/gotinydb: A simple pure Golang database

This repository was archived by the owner on May 3, 2022. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

553 Commits
553 Commits

Folders and files

NameName
Last commit message
Last commit date
blevestore
blevestore
 
 
cipher
cipher
 
 
cmd
cmd
 
 
transaction
transaction
 
 
.cirrus.yml
.cirrus.yml
 
 
.gitignore
.gitignore
 
 
.test.sh
.test.sh
 
 
CHANGLOG.md
CHANGLOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
backup_test.go
backup_test.go
 
 
collections.go
collections.go
 
 
db.go
db.go
 
 
examples_test.go
examples_test.go
 
 
files.go
files.go
 
 
files_test.go
files_test.go
 
 
go.mod
go.mod
 
 
index.go
index.go
 
 
index_test.go
index_test.go
 
 
iterators.go
iterators.go
 
 
iterators_test.go
iterators_test.go
 
 
main_test.go
main_test.go
 
 
search.go
search.go
 
 
ttl.go
ttl.go
 
 
ttl_test.go
ttl_test.go
 
 
variables.go
variables.go
 
 

Repository files navigation

GoTinyDB

GoDoc Build Status FOSSA Status codecov Go Report Card License codebeat badge

The goal is to have a fairly simple database which is light and don't needs to fit in RAM. This part is done by Badger which use SSD capabilities to have low RAM consumption and good performances.

The indexing is done by Bleve.

It's pure Go language, so no issues with CGO.

Features

Collections

Save deferent document type in different collection.

The database can have many collections, see prefix limitations. many collection can be used on the same database.

Index and query is done by Bleve

It's a fully featured indexing package. Indexing is done at the collection level and one collection can have many indexes. See prefix limitations.

Files and media content

In the same database you can save files of any size and many small documents.

Supports for big content with io.Reader and io.Writer interface. It split content into chunks of 5MB.

Confidentiality and data integrity (encryption)

The all database content is encrypted and signed with XChaCha20-Poly1305.

See encryption limitations

Installing

go get -u github.com/alexandrestein/gotinydb

Getting started

The package is supposed to be used inside your software and at this point it is not supposed to be a dedicated database service. Take a look at GoDoc and to the examples folder.

Road Map

  • Make a basic master/slaves replication system for data protection

Contributing

Any contribution will be appreciate. Feedbacks and suggestions are welcome.

Vendoring

We moved to go module. In future Go release this will be the default vendoring behavior. So this will be transparent in the next release.

Versioning

Version v1.0.0 is not ready. It's under development and versions have the form of v0.x.x.

There is no compatibility promise for now.

Limitations

Concurrency

Most of the methods can be run concurrently. But management actions can not:

  • *DB.Backup
  • *DB.Close
  • *DB.DeleteCollection
  • *DB.Load
  • *Collection.DeleteIndex
  • *Collection.SetBleveIndex

Those functions and methods should be run on idle database.

Prefixes

Prefixes to split different parts of the database: collection, files, indexes and documents. The prefixes are only 2 bytes (16bits). It gives 65536 possibilities which much more than enough. But the hash collision are possible so the real limit is much less.

If you are unlucky you will hit this ErrHashCollision.

Encryption

The database keys are not encrypted. But for indexing some of the content are used as keys. For iteration reason the keys can't be encrypted.

For the content which needs to be sealed don't index them. Bleve index mapping provides a very sine control of what are or not indexed.

Author

  • Alexandre Stein - GitHub

License

This project is licensed under the "Apache License, Version 2.0" see the LICENSE file for details or follow this link.

FOSSA Status

About

A simple pure Golang database

Topics

bleveblevesearchdatabasedbdocument-databaseencryptiongogolangnosqlsimplestorage

Resources

Readme
Apache-2.0 license
Activity

Stars

7 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.