isar / isar/hive

Is there a way to get last `typeId` in a project via CLI?

Open
#767 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

**Question**
Is there a way for Hive to tell me `typeId` that was used as the last one? It would be the largest `typeId`. I often want to create new model and annotate it and it's tedious to search for it. I just want to use last `typeId` value incremented by one.
Some kind of argument to build runner that could extract this information and print it out to console would be sufficient. I tried looking at docs but did not find anything (or maybe just completely missed it?).

**Code sample**

This question is not related to code.

**Version**

This question is not related to any version.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.