{"id":19032751,"url":"https://github.com/joutvhu/hive_wait","last_synced_at":"2026-05-06T04:32:05.755Z","repository":{"id":38286946,"uuid":"490545709","full_name":"joutvhu/hive_wait","owner":"joutvhu","description":"Hive Wait provide a Hive repository to calling methods in the box as async. Wait until the Hive is ready to use before calling the box's methods.","archived":false,"fork":false,"pushed_at":"2023-07-28T07:04:00.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T17:10:39.678Z","etag":null,"topics":["box","dart","database","hive","lazy","repository"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/hive_wait","language":"Dart","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/joutvhu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-05-10T04:50:38.000Z","updated_at":"2024-06-05T08:38:19.000Z","dependencies_parsed_at":"2024-11-08T21:31:25.037Z","dependency_job_id":"5a88882e-ffb7-4f2a-bd2a-43ee5090a53a","html_url":"https://github.com/joutvhu/hive_wait","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.125,"last_synced_commit":"6e1305c98c0c88ed7ef5634006d64798ab7db169"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joutvhu/hive_wait","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fhive_wait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fhive_wait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fhive_wait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fhive_wait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joutvhu","download_url":"https://codeload.github.com/joutvhu/hive_wait/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fhive_wait/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32678594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["box","dart","database","hive","lazy","repository"],"created_at":"2024-11-08T21:30:57.418Z","updated_at":"2026-05-06T04:32:05.739Z","avatar_url":"https://github.com/joutvhu.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hive Wait\n\nHive Wait provide a Hive repository to calling methods in the box as async.\n\nWait until the Hive is ready to use before calling the box's methods.\n\n## Usage\n\n- Wait init Hive\n```dart\nclass CoreRepository\u003cE\u003e extends HiveRepository\u003cE\u003e {\n  CoreRepository(\n    String name, {\n    bool? lazy,\n    HiveCipher? encryptionCipher,\n    KeyComparator? keyComparator,\n    CompactionStrategy? compactionStrategy,\n    bool? crashRecovery,\n    String? boxPath,\n    Uint8List? bytes,\n  }) : super(\n          name,\n          lazy: lazy,\n          encryptionCipher: encryptionCipher,\n          keyComparator: keyComparator,\n          compactionStrategy: compactionStrategy,\n          crashRecovery: crashRecovery,\n          boxPath: boxPath,\n          bytes: bytes,\n        );\n\n  @override\n  Future\u003cBoxBase\u003cE\u003e\u003e init([HiveInterface? hive]) async {\n    await Hive.initFlutter();\n    // TODO: Register adapter\n    return await super.init(Hive);\n  }\n}\n```\n\n- Using with get_it\n```dart\nclass CoreRepository\u003cE\u003e extends HiveRepository\u003cE\u003e {\n  CoreRepository(\n    String name, {\n    bool? lazy,\n  }) : super(name, lazy: lazy);\n\n  @override\n  Future\u003cBoxBase\u003cE\u003e\u003e init([HiveInterface? hive]) async {\n    await getIt.allReady();\n    hive = await getIt.getAsync\u003cHiveInterface\u003e();\n    return await super.init(hive);\n  }\n}\n\n// TODO: register a singleton with get_it\nclass PropertyRepository extends CoreRepository\u003cProperty\u003e {\n  PropertyRepository() : super('property');\n}\n```\n\n- Get data\n```dart\ngetUser() async {\n  var userRepository = CoreRepository\u003cUser\u003e('user');\n  return await userRepository.get(0);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fhive_wait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoutvhu%2Fhive_wait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fhive_wait/lists"}