{"id":20449677,"url":"https://github.com/emmanuelmess/smalldb","last_synced_at":"2026-05-19T10:04:38.688Z","repository":{"id":92103910,"uuid":"505152115","full_name":"EmmanuelMess/SmallDB","owner":"EmmanuelMess","description":"A small database to test C++ writing values and a new architecture system","archived":false,"fork":false,"pushed_at":"2022-06-19T15:58:43.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T22:28:28.939Z","etag":null,"topics":["architecture","cpp","cpp20","database"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"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/EmmanuelMess.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":"2022-06-19T15:45:54.000Z","updated_at":"2023-09-08T18:35:30.000Z","dependencies_parsed_at":"2023-06-01T12:31:26.629Z","dependency_job_id":null,"html_url":"https://github.com/EmmanuelMess/SmallDB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmmanuelMess%2FSmallDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmmanuelMess%2FSmallDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmmanuelMess%2FSmallDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmmanuelMess%2FSmallDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmmanuelMess","download_url":"https://codeload.github.com/EmmanuelMess/SmallDB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241997656,"owners_count":20055147,"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":["architecture","cpp","cpp20","database"],"created_at":"2024-11-15T10:43:33.841Z","updated_at":"2026-05-19T10:04:38.648Z","avatar_url":"https://github.com/EmmanuelMess.png","language":"C++","funding_links":["https://www.patreon.com/emmanuelmess"],"categories":[],"sub_categories":[],"readme":"# SmallDB\nA very simple database made with pure C++\n\n## Types\n\n* Double\n* Long\n* String (with max string length)\n* Datetime (no timezone)\n\n## Operations\n\n* insertRow()\n* find()\n* readDouble(), writeDouble()\n* readLong(), writeLong()\n* readString(), writeString()\n* readDatetime(), writeDatetime()\n* delete()\n\n## Architecture\n\nThe general arch is expressed in [architecture.txt](https://github.com/EmmanuelMess/SmallDB/blob/0436bdd5642b5b6e8bb3bbe5a8a2452b1bdb5cec/architecture.txt).\n\n### File layout\n        |----------------|--------|-------|-------|-------|-------|-------|-   -|\n        | number of rows | header | row 0 | row 1 | row 2 | row 3 | row 4 | ... |\n        |----------------|--------|-------|-------|-------|-------|-------|-   -|\n    \n      Header:\n        |---------------|------|-------------|------|-------------|-   -|------------|\n        | header length | name | type letter | name | type letter | ... | row length |\n        |---------------|------|-------------|------|-------------|-   -|------------|\n    \n        * name is std::string_view::c_str() with unicode support\n    \n        type letter:\n          |-----|-----------------|     |-----|     |-----|     |-----|\n          | 'S' | max size column | or  | 'D' | or  | 'L' | or  | 'T' |\n          |-----|-----------------|     |-----|     |-----|     |-----|\n    \n          * type letter is the id letter for Datatype\n          * max size column is the max size of the column in bytes, it is only used for String\n    \n      Row:\n        |----------|----------|----------|-   -|\n        | column 0 | column 1 | column 2 | ... |\n        |----------|----------|----------|-   -|\n    \n        * row has predefined length according to each type for Double, Long and Datetime\n        * if there is a string_view in the row, there will be length information in header\n    \n      Serialization for Datetime:\n        |------|-------|-----|------|--------|--------|\n        | year | month | day | hour | minute | second |\n        |------|-------|-----|------|--------|--------|\n     \n        year, month, day, hour, minute, second are saved as uint32_t\n    \n      Serialization for string:\n        |-          -|-       -|\n        | characters | padding |\n        |-          -|-       -|\n    \n        * pad with 0 until assigned string size is filled (for row skipping conveniences)\n     \n      * All lengths are uint32_t\n\n----\n\u003ca class=\"imgpatreon\" href=\"https://www.patreon.com/emmanuelmess\" target=\"_blank\"\u003e\n\u003cimg alt=\"Become a patreon\" src=\"https://user-images.githubusercontent.com/10991116/56376378-07065400-61de-11e9-9583-8ff2148aa41c.png\" width=150px\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmanuelmess%2Fsmalldb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femmanuelmess%2Fsmalldb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmanuelmess%2Fsmalldb/lists"}