Joedb 10.4.6
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
tutorial Namespace Reference

Automatically generated by joedbc.

Namespaces

namespace  city_table
namespace  person_table
namespace  rpc

Classes

class  Client
 Handle concurrent access to a joedb::Abstract_File using a joedb::Connection. More...
class  Client_Lock
 For more flexibility than the transaction lambda. More...
class  Database
 Store all the tables of the database. More...
class  container_of_city
 returned by Database::get_city_table More...
class  container_of_person
 returned by Database::get_person_table More...
class  range_of_person_by_name
 returned by Database::find_person_by_name More...
class  Database_Writable
 implement joedb::Writable in a Database More...
class  File_Client
 Shortcut to directly build a Client from a file name. More...
class  File_Database
 Shortcut to directly build a Writable_Database from a file name. More...
class  id_of_city
 Strongly-typed wrapper around an integer representing a row of the city table. More...
class  id_of_person
 Strongly-typed wrapper around an integer representing a row of the person table. More...
class  Interpreted_File_Database
 Open a .joedbi text file for reading or writing. More...
class  Memory_Database
 Shortcut to directly build a Writable_Database with a Memory_File. More...
class  Multiplexer
 Write simultaneously to the database and the file (ignore schema changes). More...
class  Procedure
 Class for all procedures based on this message schema. More...
class  Readable
 Implement the joedb::Readable interface for a compiled database. More...
class  Readonly_Client
 Client for a read-only file (allows pulling, unlike Readonly_Database). More...
class  Readonly_Database
 Load a database from a read-only file. More...
class  Readonly_Interpreted_File_Database
 Readonly_Database for a .joedbi text file More...
class  Types
 All types defined for this database, listed in a class (for use as template parameter). More...
class  Writable_Database
 A Database that contains a joedb::Writable_Journal and keeps them in sync. More...
class  Record_Id

Typedefs

using type_of_index_of_city_by_name = std::map<std::string, id_of_city, std::less<>>
using type_of_index_of_person_by_name = std::multimap<std::tuple<std::string, std::string>, id_of_person, std::less<>>

Enumerations

enum class  Table_Id
enum class  Field_Id
enum class  Table_Id
enum class  Field_Id

Functions

void print_city_table (std::ostream &out, const Database &db, size_t max_column_width=0, Record_Id start=Record_Id::null, size_t length=0)
void print_person_table (std::ostream &out, const Database &db, size_t max_column_width=0, Record_Id start=Record_Id::null, size_t length=0)

Typedef Documentation

◆ type_of_index_of_city_by_name

using tutorial::type_of_index_of_city_by_name = std::map<std::string, id_of_city, std::less<>>

Definition at line 47 of file Database.h.

◆ type_of_index_of_person_by_name

using tutorial::type_of_index_of_person_by_name = std::multimap<std::tuple<std::string, std::string>, id_of_person, std::less<>>

Definition at line 48 of file Database.h.

Enumeration Type Documentation

◆ Field_Id [1/2]

enum class joedb::Field_Id : uint16_t
strong

Definition at line 15 of file index_types.h.

◆ Field_Id [2/2]

enum class joedb::Field_Id : uint16_t
strong

Definition at line 15 of file index_types.h.

◆ Table_Id [1/2]

enum class joedb::Table_Id : uint16_t
strong

Definition at line 12 of file index_types.h.

◆ Table_Id [2/2]

enum class joedb::Table_Id : uint16_t
strong

Definition at line 12 of file index_types.h.

Function Documentation

◆ print_city_table()

void tutorial::print_city_table ( std::ostream & out,
const Database & db,
size_t max_column_width = 0,
Record_Id start = Record_Id::null,
size_t length = 0 )
inline

Definition at line 20 of file print_table.h.

◆ print_person_table()

void tutorial::print_person_table ( std::ostream & out,
const Database & db,
size_t max_column_width = 0,
Record_Id start = Record_Id::null,
size_t length = 0 )
inline

Definition at line 41 of file print_table.h.