SQLite-like database implemented in Rust as a programming exercise
fokoid / flakedb Goto Github PK
View Code? Open in Web Editor NEWSQLite-like database implemented in Rust as a programming exercise
License: MIT License
SQLite-like database implemented in Rust as a programming exercise
License: MIT License
Update readme with usage demo and some other context
Ultimately, many cursors may want to simultaneously hold a borrow to the pager.
To achieve this, the PageFile
and each individual Page
will be placed in a RefCell
.
Pages do not track number of populated rows, that comes from the single table object right now. But when we read back from disk, the number of rows is calculated as num_pages * ROWS_PER_PAGE
, so the partial page is read back as a full page with many empty rows.
We could fix this by subtracting from row count based on size of zeroed memory at the end of the last page. However, it's not really worth the effort since we will soon be switching page format from contiguous arrays to btree nodes #4. Will mark the failing test as skip for now, and ensure it's passing with the btree implementation.
log
crateeprintln!
to use logging macrosrexpect
tests currently broken by logging output by setting log level appropriatelyAs the final task for the MVP milestone, I'd like to review the code and restructure/refactor as appropriate to clean things up ready for future changes.
rexpect
tests to assert new behaviour works correctly in REPLAs per part 6 of the guide we're following, we want to put a cursor abstraction between the pager and the SQL queries.
Blocked by page format change #4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.