db_tutorial
bolt
Our great sponsors
db_tutorial | bolt | |
---|---|---|
17 | 22 | |
9,236 | 11,201 | |
- | - | |
4.1 | 0.0 | |
about 2 months ago | about 6 years ago | |
C | Go | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
db_tutorial
-
Problem with recreating like SQLite database.
I am trying to recreate work from https://cstack.github.io/db_tutorial/ Basically it is recreating very simple SQLite, loading data from a file at the start of the program, and storing data in memory when the program runs then saving data to a file when we close the program. I believe that my issues are connected to working in the Windows instead of the Linux. Right now I am at part 5 when we start saving our data to the file when we close our program.
- How do I build a database from scratch?
-
22 grad, need some criticisms on my portfolio. Are my projects not impressive? Or is it just the market?
Stoped open source contributions recently, will be working on Build your Own Text Editor and Let's Build a Simple Database probably after landing an internship or a job
-
You know there's something seriously wrong with a programming language when an example program (which is just 20 lines of code) like this is already unsafe.
Last I heard, micro controllers still extensively use C and C-like sibling languages (like The Arduino Language). Most system applications use UI kits like Qt or GTK, which are also C libraries. Most of the Linux kernel consists of C code. Both SQL and NoSQL database backend are written mostly in C, with C++ coming in second, and only a few written in Rust, Zig or Golang (if you're interested in creating your own simple database, this is a great tutorial). TensorFlow and Pytorch, the machine learning libraries used for creating ANN-based architectures, uses libtensorflow and libtorch behind the scene that uses a mix of C and C++ libraries, then there's also GPU stuff like CUDA and RoCM that uses a mix of Fortran, C and Julia. Vulkan is also written in C and is supported in C++. Almost all performant libraries in Ruby, Python, Rust or Julia uses C bindings.
- Check
-
hi guys I just finished my c course and I want an idea for a c project to summer up my knowledge any help
Have you thought about writing a DB from scratch in C? You'll learn lots of cool stuff about memory and OS abstractions: cstack.github.io/db_tutorial/
- Implementing a simple shell in C
- Create RDBMS in C
- Is sqlite3 just a C program that reads, writes, updates and deletes data from a file, plus some extra features?
-
Looking for a books strictly about how to write database engine
There's an online tutorial started a while back: https://cstack.github.io/db_tutorial
bolt
-
Announcing jammdb: a simple single-file key/value store
This crate started out as just a way for me to learn how boltdb works, while learning Rust at the same time. But somehow people started finding and using it and seem to like the simple API, so I figured I might as well share it in case someone else finds it useful too. If you want to know more about my motivations and the history of this crate, you can read the release notes on version 0.8.0!
-
Polygon: Json Database System designed to run on small servers (as low as 16MB) and still be fast and flexible.
Some example of embeddable database could be genji, badger and boltdb
- Resource for making database from scratch
-
Ask HN: Books on designing disk-optimized data structures?
Designing Data Intensive applications- specifically chapter 3 and 4 which deal with strategies and algorithms for storing and encoding data to be stored on disk and their pros and cons.
Once you read that, I'll suggest reading the source of a simple embedded key-value database, I wouldn't bother with RDBMs as they are complex beasts and contain way more than you need. BoltDB is a good project to read the source of https://github.com/boltdb/bolt, the whole thing is <10k lines of code and is a full blown production grade system with ACID semantics so packs a lot in those 10k and isn't just merely a toy.
-
GitHub examples of Go that's written really well?
Bolt db and Bolt db's author post to go with it.
-
Open Source Databases in Go
https://github.com/boltdb/bolt is a ACID B+ tree key-value store
- A Database for 2022
-
Single Dependency Stacks
For a single server, SQLite, or boltdb[0]
I've never had to scale horizontally. I develop in Go and you can get very far along with just vertical scaling (aka beefier hardware).
Therefore I can't give concrete examples of a distributed db-as-a-library.
But all that you need is to extend the functions that fetch data to not just fetch from disk but from "peers" as well. For this to work you need servers (instances) to know about each other, and as you add more they also get added to their peers - sort of like a bittorrent network. I don't think it's difficult to do.
SQLite might not be suited for being distributed (although RQlite[1] claims to have done it).
Making a distributed data storage based on boltdb[0] is probably more feasible.
Whatever the case, there's no reason why a data storage engine can't be a library, even if it's distributed.
[0]: https://github.com/boltdb/bolt
[1]: https://github.com/rqlite/rqlite
- How can I batch events in second intervals?
- Give examples of really cool software made by a single developer?
What are some alternatives?
fbptree - A persistent storage (in file) based using B+ tree with byte-slice keys and values
buntdb - BuntDB is an embeddable, in-memory key/value database for Go with custom indexing and geospatial support
lsmtree - Log-structured merge-tree
badger - Fast key-value DB in Go.
py-caskdb - (educational) build your own disk based KV store
bbolt - An embedded key/value database for Go.
chai - Modern embedded SQL database
goleveldb - LevelDB key/value database in Go.
helindb
go-memdb - Golang in-memory database built on immutable radix trees
naivecoin - A tutorial for building a cryptocurrency
InfluxDB - Scalable datastore for metrics, events, and real-time analytics