mirror of
https://github.com/typesense/typesense.git
synced 2025-05-22 23:06:30 +08:00
20 lines
242 B
C++
20 lines
242 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
/*
|
|
* Stores all information about a collection.
|
|
* Uses RocksDB for persistence.
|
|
*/
|
|
class CollectionState {
|
|
|
|
private:
|
|
|
|
uint32_t id = 0;
|
|
|
|
public:
|
|
|
|
uint32_t nextId() {
|
|
return ++id;
|
|
}
|
|
}; |