Database

LiteDB – embedded BSON database

LiteDB is an embedded NoSQL database for .NET applications. It stores BSON documents in a single database file and does not require a separate database server.

The database is designed for applications that need local persistent storage while retaining the querying and indexing capabilities of a document database. It provides an API similar in concept to MongoDB, allowing developers to work with collections containing BSON documents.

LiteDB can map application classes directly to database records. Developers can use ordinary .NET objects rather than manually constructing document structures for every database operation.

The database supports transactional updates and includes recovery mechanisms for interrupted write operations. Its storage engine allows multiple readers to access data while coordinating modifications to preserve consistency.

LiteDB also offers query facilities that integrate with .NET development practices. Applications can use expressions to select records or execute SQL-like queries for more complex retrieval operations.

It is particularly suitable for desktop applications, small services and tools that need a self-contained document database.

This is free and open source software.

Key Features

  • BSON document storage with flexible schemas.
  • Single-file database persistence.
  • ACID transactions.
  • Write-ahead logging and recovery.
  • Document collections with unique identifiers.
  • Secondary indexes for faster queries.
  • LINQ-based queries.
  • SQL-like commands for filtering and transforming data.
  • Object mapping with attributes and fluent configuration.
  • References between documents and collections.
  • Binary file storage with streaming support.
  • Thread-safe database access.
  • Multiple concurrent readers.

Website: github.com/litedb-org/LiteDB
Support:
Developer: Mauricio David and contributors
License: MIT License

LiteDB is written in C#. Learn C# with our recommended free books and free tutorials.


Related Software

Document-Oriented Databases
SurrealDBScalable, distributed, collaborative, document-graph database
CouchbaseDistributed key-value database management system
CouchDBScalable, fault-tolerant, and schema-free written in Erlang
ArangoDBNative multi-model database
eXist-dbDatabase management system entirely built on XML technology
RethinkDBScalable database built for realtime applications
BaseXXML database engine
OrientDBDocument Database supporting ACID Transactions, SQL and Native Queries
AerospikeKey-Value Store and high performance real-time NoSQL (flex-schema) database
RavenDBFully-transactional NoSQL ACID database
FerretDBDatabase proxy that offers an open-source alternative to MongoDB
DocumentDBMongoDB-compatible document database engine
JackrabbitOpen-source content repository for Java
TerminusDBKnowledge graph and document store
KintoMinimalist JSON storage service
CrateDBDistributed SQL database management

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted