{"id":17201371,"url":"https://github.com/timwspence/codecrafters-sqlite-rust","last_synced_at":"2025-03-25T09:13:04.661Z","repository":{"id":246543664,"uuid":"621779373","full_name":"TimWSpence/codecrafters-sqlite-rust","owner":"TimWSpence","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-01T10:33:42.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T08:23:41.865Z","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/TimWSpence.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-03-31T11:19:48.000Z","updated_at":"2024-07-01T10:33:45.000Z","dependencies_parsed_at":"2024-06-28T16:01:46.890Z","dependency_job_id":"372ecda6-c4ca-46fd-b06b-72f871e0238b","html_url":"https://github.com/TimWSpence/codecrafters-sqlite-rust","commit_stats":null,"previous_names":["timwspence/codecrafters-sqlite-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimWSpence%2Fcodecrafters-sqlite-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimWSpence%2Fcodecrafters-sqlite-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimWSpence%2Fcodecrafters-sqlite-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimWSpence%2Fcodecrafters-sqlite-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimWSpence","download_url":"https://codeload.github.com/TimWSpence/codecrafters-sqlite-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245431726,"owners_count":20614184,"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","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-15T02:11:38.865Z","updated_at":"2025-03-25T09:13:04.641Z","avatar_url":"https://github.com/TimWSpence.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![progress-banner](https://app.codecrafters.io/progress/sqlite/2f1880ba-3db4-432c-8806-2a524067c54a)](https://app.codecrafters.io/users/TimWSpence)\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%2Ftimwspence%2Fcodecrafters-sqlite-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimwspence%2Fcodecrafters-sqlite-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwspence%2Fcodecrafters-sqlite-rust/lists"}