{"id":25030265,"url":"https://github.com/fadhil-riyanto/fdatabase","last_synced_at":"2025-07-09T18:34:09.557Z","repository":{"id":122014433,"uuid":"428232085","full_name":"fadhil-riyanto/fdatabase","owner":"fadhil-riyanto","description":"a key value database base on json and program memory","archived":false,"fork":false,"pushed_at":"2021-11-17T14:10:42.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T19:31:41.257Z","etag":null,"topics":["json","key-value-database"],"latest_commit_sha":null,"homepage":"","language":"Hack","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fadhil-riyanto.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","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":"2021-11-15T11:14:34.000Z","updated_at":"2024-05-15T01:18:22.000Z","dependencies_parsed_at":"2023-03-13T12:24:03.310Z","dependency_job_id":null,"html_url":"https://github.com/fadhil-riyanto/fdatabase","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fadhil-riyanto/fdatabase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhil-riyanto%2Ffdatabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhil-riyanto%2Ffdatabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhil-riyanto%2Ffdatabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhil-riyanto%2Ffdatabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fadhil-riyanto","download_url":"https://codeload.github.com/fadhil-riyanto/fdatabase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhil-riyanto%2Ffdatabase/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502387,"owners_count":23618587,"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":["json","key-value-database"],"created_at":"2025-02-05T21:58:25.817Z","updated_at":"2025-07-09T18:34:09.504Z","avatar_url":"https://github.com/fadhil-riyanto.png","language":"Hack","readme":"# how to use\n\n```hack\n\u003c\u003c__EntryPoint\u003e\u003e\nfunction main(): noreturn {\n    require(__DIR__ . \"/../src/Utils.hh\");\n    require(__DIR__ . '/../src/main.hh');\n    $db = new fdatabase(\"db.fdb\", dict[ \n        \"set_load_file\" =\u003e true\n    ]);\n    $db-\u003eset(\"foUoe\", \"bare\", true); \n    $db-\u003ecommit(); // commit to file\n\n    echo $db-\u003eget(\"foUoe\");\n}\n```\n\n# method\n\n+ set(key, value, overwritten)\n    - key is a identifier of value\n    - value is a content\n    - overwritten is condition, default is true. turn false if you not overwrite the data\n+ del(key)\n    - key to delete\n\n+ commit()\n    - for append data from memory to non volatile file\n\n+ get(key)\n    - getting the key\n\n# note \nthe file in construct class of fdatabase must be exist!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadhil-riyanto%2Ffdatabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffadhil-riyanto%2Ffdatabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadhil-riyanto%2Ffdatabase/lists"}