{"id":17078896,"url":"https://github.com/hatoo/codecrafters-sqlite-rust","last_synced_at":"2026-05-07T00:37:49.817Z","repository":{"id":169965571,"uuid":"646058211","full_name":"hatoo/codecrafters-sqlite-rust","owner":"hatoo","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-28T08:11:12.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T12:30:12.903Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hatoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-27T06:36:07.000Z","updated_at":"2023-05-27T20:56:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"19e94d96-1248-47ea-ae61-d8b5215ff062","html_url":"https://github.com/hatoo/codecrafters-sqlite-rust","commit_stats":null,"previous_names":["hatoo/codecrafters-sqlite-rust"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hatoo/codecrafters-sqlite-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fcodecrafters-sqlite-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fcodecrafters-sqlite-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fcodecrafters-sqlite-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fcodecrafters-sqlite-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatoo","download_url":"https://codeload.github.com/hatoo/codecrafters-sqlite-rust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatoo%2Fcodecrafters-sqlite-rust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269844389,"owners_count":24484193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T12:23:54.485Z","updated_at":"2026-05-07T00:37:49.776Z","avatar_url":"https://github.com/hatoo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![progress-banner](https://app.codecrafters.io/progress/sqlite/c54748ad-068e-4d1e-8394-60880f5de753)](https://app.codecrafters.io/users/hatoo)\n\nThis is a starting point for Rust solutions to the\n[\"Build Your Own SQLite\" Challenge](https://codecrafters.io/challenges/sqlite).\n\nIn this challenge, you'll build a barebones SQLite implementation that supports\nbasic SQL queries like `SELECT`. Along the way we'll learn about\n[SQLite's file format](https://www.sqlite.org/fileformat.html), how indexed data\nis\n[stored in B-trees](https://jvns.ca/blog/2014/10/02/how-does-sqlite-work-part-2-btrees/)\nand more.\n\n**Note**: If you're viewing this repo on GitHub, head over to\n[codecrafters.io](https://codecrafters.io) to try the challenge.\n\n# Passing the first stage\n\nThe entry point for your SQLite implementation is in `src/main.rs`. Study and\nuncomment the relevant code, and push your changes to pass the first stage:\n\n```sh\ngit add .\ngit commit -m \"pass 1st stage\" # any msg\ngit push origin master\n```\n\nTime to move on to the next stage!\n\n# Stage 2 \u0026 beyond\n\nNote: This section is for stages 2 and beyond.\n\n1. Ensure you have `cargo (1.54)` installed locally\n1. Run `./your_sqlite3.sh` to run your program, which is implemented in\n   `src/main.rs`. This command compiles your Rust project, so it might be slow\n   the first time you run it. Subsequent runs will be fast.\n1. Commit your changes and run `git push origin master` to submit your solution\n   to CodeCrafters. Test output will be streamed to your terminal.\n\n# Sample Databases\n\nTo make it easy to test queries locally, we've added a sample database in the\nroot of this repository: `sample.db`.\n\nThis contains two tables: `apples` \u0026 `oranges`. You can use this to test your\nimplementation for the first 6 stages.\n\nYou can explore this database by running queries against it like this:\n\n```sh\n$ sqlite3 sample.db \"select id, name from apples\"\n1|Granny Smith\n2|Fuji\n3|Honeycrisp\n4|Golden Delicious\n```\n\nThere are two other databases that you can use:\n\n1. `superheroes.db`:\n   - This is a small version of the test database used in the table-scan stage.\n   - It contains one table: `superheroes`.\n   - It is ~1MB in size.\n1. `companies.db`:\n   - This is a small version of the test database used in the index-scan stage.\n   - It contains one table: `companies`, and one index: `idx_companies_country`\n   - It is ~7MB in size.\n\nThese aren't included in the repository because they're large in size. You can\ndownload them by running this script:\n\n```sh\n./download_sample_databases.sh\n```\n\nIf the script doesn't work for some reason, you can download the databases\ndirectly from\n[codecrafters-io/sample-sqlite-databases](https://github.com/codecrafters-io/sample-sqlite-databases).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatoo%2Fcodecrafters-sqlite-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatoo%2Fcodecrafters-sqlite-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatoo%2Fcodecrafters-sqlite-rust/lists"}