Add database_api::get_next_object_id
API
#2653
Merged
database_api::get_next_object_id
API
#2653