Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Database_cpp.cpp
Go to the documentation of this file.
3#include "joedb/ui/type_io.h"
4
5namespace joedb::generator
6{
7 ////////////////////////////////////////////////////////////////////////////
9 ////////////////////////////////////////////////////////////////////////////
10 (
11 const Compiler_Options &options
12 ):
13 Generator(".", "Database.cpp", options)
14 {
15 }
16
17 ////////////////////////////////////////////////////////////////////////////
19 ////////////////////////////////////////////////////////////////////////////
20 {
21 out << "#include \"Database.h\"\n\n";
22
23 auto name_space = options.get_name_space();
24 name_space.emplace_back("detail");
25
26 namespace_open(out, name_space);
27
28 out << "\n const char * schema_string = ";
30 out << ";\n";
31
32 namespace_close(out, name_space);
33 }
34}
const std::vector< std::string > & get_name_space() const
std::string & get_data()
Definition Memory_File.h:20
Database_cpp(const Compiler_Options &options)
const Compiler_Options & options
Definition Generator.h:14
void namespace_open(std::ostream &out, const std::vector< std::string > &n)
void namespace_close(std::ostream &out, const std::vector< std::string > &n)
void write_string(std::ostream &out, const std::string &s, bool json)
One code generator for each of the file generated by joedbc.
Definition Client_h.cpp:5