MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / HasStream

Method HasStream

src/render_panel/database/stream_db_operator.cpp:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 bool StreamDBOperator::HasStream(const std::string& stream_id) {
52 using Storage = decltype(db_->GetStorageTypeValue());
53 auto storage = std::any_cast<Storage>(db_->GetDbStorage());
54 auto streams = storage.get_all<spvr::SpvrStream>(where(c(&spvr::SpvrStream::stream_id_) == stream_id));
55 return !streams.empty();
56 }
57
58 bool StreamDBOperator::UpdateStream(std::shared_ptr<spvr::SpvrStream> stream) {
59 stream->updated_timestamp_ = (int64_t)TimeUtil::GetCurrentTimestamp();

Callers

nothing calls this directly

Calls 2

GetStorageTypeValueMethod · 0.80
GetDbStorageMethod · 0.80

Tested by

no test coverage detected