{"id":31550052,"url":"https://github.com/uretgec/mydb","last_synced_at":"2026-05-17T04:43:31.246Z","repository":{"id":50616638,"uuid":"490035247","full_name":"uretgec/mydb","owner":"uretgec","description":"Boltdb and Sniper based simple disk with in memory storage unit","archived":false,"fork":false,"pushed_at":"2022-07-31T00:09:03.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T17:44:37.414Z","etag":null,"topics":["bbolt","boltdb","databases","sniper","sniperdb","storage-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/uretgec.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}},"created_at":"2022-05-08T19:22:17.000Z","updated_at":"2023-03-02T20:29:12.000Z","dependencies_parsed_at":"2022-09-24T16:01:22.831Z","dependency_job_id":null,"html_url":"https://github.com/uretgec/mydb","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/uretgec/mydb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uretgec%2Fmydb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uretgec%2Fmydb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uretgec%2Fmydb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uretgec%2Fmydb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uretgec","download_url":"https://codeload.github.com/uretgec/mydb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uretgec%2Fmydb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281272232,"owners_count":26472669,"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-10-27T02:00:05.855Z","response_time":61,"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":["bbolt","boltdb","databases","sniper","sniperdb","storage-api"],"created_at":"2025-10-04T17:32:15.031Z","updated_at":"2025-10-27T13:09:22.241Z","avatar_url":"https://github.com/uretgec.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MYDB\nIt is a storage package containing both in-memory and file-type databases that you can use to hold simple data.\n\nUse:\n- bbolt: go.etcd.io/bbolt\n- sniper: github.com/recoilme/sniper\n\nNOTE:\n\u003e If use only boltdb, all key-value data are at in-memory and saves all data to snapshot file for recovery\n\n\u003e If use only sniperdb, all index data are at in-memory and save all key-value data to file (multiple files)\n\u003e sniperdb have to use bboltdb index for list, prevlist, exist methods\n\n\u003e You can use both db together without any problems.\n\n## Examples\n\nExample use go to mydb-server repository -\u003e (https://github.com/uretgec/mydb-server)\n\n## Methods\n```\n\tNewStore(bucketList, indexList []string, path string, dbName string, readOnly bool)\n\tCloseStore()\n\tSyncStore()\n\n\tSet(bucketName []byte, k []byte, data []byte) ([]byte, error)\n\tGet(bucketName []byte, k []byte) ([]byte, error)\n\tMGet(bucketName []byte, keys ...[]byte) (interface{}, error)\n\tList(bucketName []byte, cursor []byte, perpage int) ([]string, error)\n\tPrevList(bucketName []byte, cursor []byte, perpage int) ([]string, error)\n\tDelete(bucketName []byte, k []byte) error\n\n\tKeyExist(bucketName []byte, k []byte) (bool, error)\n\tValueExist(bucketName []byte, v []byte) (bool, error)\n\n\tHasBucket(bucketName []byte) bool\n\tStatsBucket(bucketName []byte) int\n\tListBucket(bucketName []byte) int\n\tDeleteBucket(bucketName []byte) int\n\n\tBackup(path, filename string) error\n\tRestore(path, filename string) error\n```\n\n## Install\n\n```\ngo get  github.com/uretgec/mydb\n```\n\n## TODO\n- Add new examples\n\n## Links\n\nBbolt (https://github.com/etcd-io/bbolt)\n\nSniper (https://github.com/recoilme/sniper)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furetgec%2Fmydb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furetgec%2Fmydb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furetgec%2Fmydb/lists"}