{"id":47624080,"url":"https://github.com/cutsea110/simpledb","last_synced_at":"2026-04-01T22:34:19.783Z","repository":{"id":36989475,"uuid":"447771996","full_name":"cutsea110/simpledb","owner":"cutsea110","description":"Database Design and Implementation: Second Edition","archived":false,"fork":false,"pushed_at":"2026-03-22T22:31:42.000Z","size":9412,"stargazers_count":21,"open_issues_count":8,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-23T16:27:41.453Z","etag":null,"topics":["database","rust"],"latest_commit_sha":null,"homepage":"","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/cutsea110.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-13T22:32:04.000Z","updated_at":"2026-03-22T22:31:45.000Z","dependencies_parsed_at":"2025-11-30T06:08:07.943Z","dependency_job_id":null,"html_url":"https://github.com/cutsea110/simpledb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cutsea110/simpledb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutsea110%2Fsimpledb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutsea110%2Fsimpledb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutsea110%2Fsimpledb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutsea110%2Fsimpledb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cutsea110","download_url":"https://codeload.github.com/cutsea110/simpledb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutsea110%2Fsimpledb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","rust"],"created_at":"2026-04-01T22:34:19.138Z","updated_at":"2026-04-01T22:34:19.764Z","avatar_url":"https://github.com/cutsea110.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleDB\n\n[![Rust](https://github.com/cutsea110/simpledb/actions/workflows/rust.yml/badge.svg)](https://github.com/cutsea110/simpledb/actions/workflows/rust.yml)\n\nThis is a project to develop SimpleDB in Rust.\n\ntext: [Database Design and Implementation: Second Edition](https://www.amazon.co.jp/gp/product/3030338355/)\n\n## Demo movie\n\n\u003cimg src=\"./movie/demo-x2-resized.gif\" width=\"800\" alt=\"Demo movie\"\u003e\n[youtube]: https://www.youtube.com/watch?v=vr0wQq7cvHQ\n\n## Status\n\nDone to implement all of book contents, but any exercise.\n\n## Build\n\nYou need to install capnproto for building this project.\n\n``` shell\nsudo apt install capnproto\n```\n\n``` shell\ncargo build\n```\n\n## How to run on embedded version\n\nHow to connect and run sql for a database named dbname on embedded version is like below.\n\n``` shell\ncargo run --bin esql -- -d \u003cdbname\u003e\n```\n\n## How to run on server/client version\n\nHow to run simpledb-server.\n\n``` shell\ncargo run --bin simpledb-server\n```\n\nHow to run sql as simpledb client program.\n\n``` shell\ncargo run --bin sql -- -d \u003cdbname\u003e\n```\n\n## Benchmarking \u0026 Visualize\n\ntake benchmarking data.\n\n``` shell\n./benchmarks.sh\n```\n\nand then run http-server.\nYou must install http-server on npm, if you view the results on your local.\n\n``` shell\ncd benchmarks\nhttp-server -p 3000\n```\n\nand then open browser http://localhost:3000?scale=tiny.\nAt this url, query parameter scale can has tiny/small/medium/large.\n\n## Query tips\n\nuse rlwrap in order to edit query prettier.\n\n```bash\n$ rlwrap cargo run --bin esql -- -d \u003cdbname\u003e\n```\n\ncheck table catalogs.\n\n```sql\nSQL\u003e :t tblcat\n* table: tblcat has 2 fields.\n\n#   name             type\n--------------------------------------\n   1 tblname          varchar(16)\n   2 slotsize         integer\n\nSQL\u003e SELECT tblname FROM tblcat;\ntblname\n------------------\ntblcat\nfldcat\nviewcat\nidxcat\nstudent\ndept\ncourse\nsection\nenroll\nsex\ntransaction 6 committed\nRows 10 (0.000s)\n\nSQL\u003e\n```\n\ncheck field catalogs.\n\n```sql\nSQL\u003e :t fldcat\n* table: fldcat has 5 fields.\n\n#   name             type\n--------------------------------------\n   1 tblname          varchar(16)\n   2 fldname          varchar(16)\n   3 type             integer\n   4 length           integer\n   5 offset           integer\n\nSQL\u003e SELECT tblname, fldname, type, length FROM fldcat;\ntblname           fldname           type    length\n----------------------------------------------------\n...\nstudent           sid                     2       0\nstudent           sname                   3      10\nstudent           grad_year               1       0\nstudent           major_id                2       0\nstudent           birth                   5       0\nstudent           sex                     4       0\ntransaction 9 committed\nRows 33 (0.001s)\n```\n\ncheck view catalog\n\n```sql\nSQL\u003e SELECT viewname, viewdef FROM viewcat;\nviewname          viewdef\n------------------------------------------------------------------------------------------------------------------------\neinstein          select sect_id from section where prof='einstein'\ntransaction 3 committed\nRows 1 (0.000s)\n\nSQL\u003e\n```\n\n### Benchmark results\n\n- [tiny](https://cutsea110.github.io/simpledb/?scale=tiny)\n- [small](https://cutsea110.github.io/simpledb/?scale=small)\n- [medium](https://cutsea110.github.io/simpledb/?scale=medium)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutsea110%2Fsimpledb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcutsea110%2Fsimpledb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutsea110%2Fsimpledb/lists"}