discord-bot/libs/sqlite_orm-1.8.2/dev/dbstat.h

38 lines
1.2 KiB
C
Raw Permalink Normal View History

2024-02-25 14:05:45 -05:00
#pragma once
#include <string> // std::string
#include "column.h"
#include "table.h"
namespace sqlite_orm {
#ifdef SQLITE_ENABLE_DBSTAT_VTAB
struct dbstat {
std::string name;
std::string path;
int pageno = 0;
std::string pagetype;
int ncell = 0;
int payload = 0;
int unused = 0;
int mx_payload = 0;
int pgoffset = 0;
int pgsize = 0;
};
inline auto make_dbstat_table() {
return make_table("dbstat",
make_column("name", &dbstat::name),
make_column("path", &dbstat::path),
make_column("pageno", &dbstat::pageno),
make_column("pagetype", &dbstat::pagetype),
make_column("ncell", &dbstat::ncell),
make_column("payload", &dbstat::payload),
make_column("unused", &dbstat::unused),
make_column("mx_payload", &dbstat::mx_payload),
make_column("pgoffset", &dbstat::pgoffset),
make_column("pgsize", &dbstat::pgsize));
}
#endif // SQLITE_ENABLE_DBSTAT_VTAB
}