Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Client.h
Go to the documentation of this file.
1/////////////////////////////////////////////////////////////////////////////
2//
3// This code was automatically generated by the joedb compiler
4// https://www.joedb.org/
5//
6// Path to compiler: /home/rcoulom/repos/joedb/compcmake/gcc_debug/joedbc
7// Version: 10.2.1
8// joedbc compilation time: Sep 15 2025 20:22:33
9// Generation of this file: 2025-09-15 18:23:01 GMT
10//
11/////////////////////////////////////////////////////////////////////////////
12#ifndef tutorial_rpc_Client_declared
13#define tutorial_rpc_Client_declared
14
15#include "Signatures.h"
16#include "joedb/rpc/Client.h"
17
18namespace tutorial::rpc
19{
20 /// Specialization of joedb::rpc::Client
22 {
23 public:
25 joedb::rpc::Client(channel, get_signatures())
26 {
27 }
28
30 {
31 db.soft_checkpoint();
32 call(0, db);
33 db.pull();
34 }
35
37 {
38 db.soft_checkpoint();
39 call(1, db);
40 db.pull();
41 }
42
44 {
45 db.soft_checkpoint();
46 call(2, db);
47 db.pull();
48 }
49
51 {
52 db.soft_checkpoint();
53 call(3, db);
54 db.pull();
55 }
56 };
57}
58
59#endif
void call(int64_t procedure_id, Memory_File &file)
Definition Client.h:58
Shortcut to directly build a Writable_Database with a Memory_File.
Specialization of joedb::rpc::Client.
Definition Client.h:22
void get_inhabitants(tutorial::Memory_Database &db)
Definition Client.h:50
void insert_city(city::Memory_Database &db)
Definition Client.h:29
Client(joedb::Channel &channel)
Definition Client.h:24
void delete_city(city::Memory_Database &db)
Definition Client.h:36
void get_population(population::Memory_Database &db)
Definition Client.h:43
Shortcut to directly build a Writable_Database with a Memory_File.
Shortcut to directly build a Writable_Database with a Memory_File.
const auto & get_signatures()
Get the list of procedure signatures. Used by RPC client and server.
Definition Signatures.h:23