21788d003a
Summary: Dressipi CRUD queries are dummy implemented; Fixes T99 and T131 Test Plan: manual Reviewers: sale Subscribers: buda, sale Maniphest Tasks: T131, T99 Differential Revision: https://memgraph.phacility.com/D9
17 lines
410 B
C++
17 lines
410 B
C++
#pragma once
|
|
|
|
/*
|
|
* Source object is going to be traversed by Writer and Writer will
|
|
* write that data into the Destination object.
|
|
*
|
|
* Writer object defines write format.
|
|
*/
|
|
template <typename Destination, typename Writer, typename Source>
|
|
Destination handle_write(const Source& source)
|
|
{
|
|
Destination destination;
|
|
Writer writter(destination);
|
|
source.handle(writter);
|
|
return destination;
|
|
}
|