Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add database_api::get_next_object_id API #2653

Merged
merged 2 commits into from
Oct 9, 2022
Merged

Conversation

abitmore
Copy link
Member

@abitmore abitmore commented Oct 7, 2022

PR for #2649.

This PR adds a database API which partially depends on the api_helper_indexes plugin.

  • get_next_object_id( space_id, type_id, whether_with_pending_transactions )
/**
 * @brief Get the next object ID in an object space
 * @param space_id The space ID
 * @param type_id The type ID
 * @param with_pending_transactions Whether to include pending transactions
 * @return The next object ID to be assigned
 * @throw fc::exception If the object space does not exist, or @p with_pending_transactions
 *                      is @a false but the api_helper_indexes plugin is not enabled
 */
object_id_type get_next_object_id( uint8_t space_id, uint8_t type_id,
                                   bool with_pending_transactions )const;

@abitmore abitmore added this to the 6.1.0 - Feature Release milestone Oct 7, 2022
@abitmore abitmore linked an issue Oct 7, 2022 that may be closed by this pull request
17 tasks
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 7, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add API to get the next object ID
1 participant