Joedb 10.0.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Procedure.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/monitor/compcmake/gcc_release_20/joedbc
7// Version: 10.1.0
8// joedbc compilation time: Aug 28 2025 16:11:22
9// Generation of this file: 2025-08-28 14:12:12 GMT
10//
11/////////////////////////////////////////////////////////////////////////////
12#ifndef joedb_db_encoded_file_Procedure_declared
13#define joedb_db_encoded_file_Procedure_declared
14
15#include "rpc/Service.h"
16#include "joedb/rpc/Procedure.h"
17#include "Writable_Database.h"
18
20{
21 /// Class for all procedures based on this message schema
22 class Procedure: public joedb::rpc::Procedure
23 {
24 protected:
25 rpc::Service &service;
26
27 virtual void execute(Writable_Database &message) const = 0;
28
29 void execute(joedb::Buffered_File &file) const override
30 {
32 execute(db);
33 db.soft_checkpoint();
34 }
35
36 public:
38 {
39 }
40 };
41}
42
43#endif
Class for all procedures based on this message schema.
Definition Procedure.h:23
void execute(joedb::Buffered_File &file) const override
Definition Procedure.h:29
virtual void execute(Writable_Database &message) const =0
Procedure(rpc::Service &service)
Definition Procedure.h:37
A Database that contains a joedb::Writable_Journal and keeps them in sync.
@ ignore_header
use file size as checkpoint
Automatically generated by joedbc.
Definition Client.h:19