An open API service indexing awesome lists of open source software.

https://github.com/jrmurr/sqljr

Toy DB to get more sytems expereince
https://github.com/jrmurr/sqljr

database rust

Last synced: 12 months ago
JSON representation

Toy DB to get more sytems expereince

Awesome Lists containing this project

README

          

# SQLJr
Toy DB to get more systems experience

## TODO

- General
- Make a schema aware row struct
- Repl
- Handle multiline queries (maybe streaming nom might work?)
- Parser
- Would be cool to make a combinator/macro that is tuple where each elem is separated by whitespace
- Would be cool to make a macro for SqlQuery that auto makes the alt with each variant
- Errors
- https://fasterthanli.me/series/advent-of-code-2022/part-11#nice-parser-errors
- https://www.reddit.com/r/rust/comments/p9t3jh/miette_a_fancy_new_diagnostics_definition_and/ha0wl0q/
- look at https://github.com/swc-project/swc/tree/main/crates/swc_error_reporters/src for error reporting

## Resources
- [Nom sql parser](https://github.com/ms705/nom-sql)
- [DB walk through](https://cstack.github.io/db_tutorial/)
- [Nom combinators](https://github.com/Geal/nom/blob/main/doc/choosing_a_combinator.md)
- [Searlization/page stuff](https://www.reddit.com/r/rust/comments/ukz786/rust_way_of_dealing_with_memory_allocation/)
- [Miette (errors)](https://docs.rs/miette/latest/miette/)