Loading debian/changelog +6 −0 Original line number Diff line number Diff line libdbpp (20260520+2) unstable; urgency=medium * Add std::string support to SQL operator<< -- Jan Koester <jan.koester@tuxist.de> Tue, 20 May 2026 00:00:00 +0200 libdbpp (20260520+1) unstable; urgency=medium * Add ReplicatedDatabase class for write-all/read-primary replication Loading include/database.h +1 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ namespace dbpp { ~SQL(); SQL& operator<<(const SQL &sql); SQL& operator<<(const char *sql); SQL& operator<<(const std::string &sql); SQL& operator<<(int sql); SQL& operator=(const char *sql); Loading src/database.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,11 @@ dbpp::SQL & dbpp::SQL::operator<<(const char* sql){ return *this; } dbpp::SQL & dbpp::SQL::operator<<(const std::string &sql){ append(sql.c_str(),sql.size()); return *this; } dbpp::SQL & dbpp::SQL::operator<<(int sql){ char buf[512*sizeof(int)]; snprintf(buf,512,"%d",sql); Loading Loading
debian/changelog +6 −0 Original line number Diff line number Diff line libdbpp (20260520+2) unstable; urgency=medium * Add std::string support to SQL operator<< -- Jan Koester <jan.koester@tuxist.de> Tue, 20 May 2026 00:00:00 +0200 libdbpp (20260520+1) unstable; urgency=medium * Add ReplicatedDatabase class for write-all/read-primary replication Loading
include/database.h +1 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ namespace dbpp { ~SQL(); SQL& operator<<(const SQL &sql); SQL& operator<<(const char *sql); SQL& operator<<(const std::string &sql); SQL& operator<<(int sql); SQL& operator=(const char *sql); Loading
src/database.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,11 @@ dbpp::SQL & dbpp::SQL::operator<<(const char* sql){ return *this; } dbpp::SQL & dbpp::SQL::operator<<(const std::string &sql){ append(sql.c_str(),sql.size()); return *this; } dbpp::SQL & dbpp::SQL::operator<<(int sql){ char buf[512*sizeof(int)]; snprintf(buf,512,"%d",sql); Loading