Commit 93a1f997 authored by jan.koester's avatar jan.koester
Browse files

test

parent 72b29763
Loading
Loading
Loading
Loading
+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
+1 −0
Original line number Diff line number Diff line
@@ -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);

+5 −0
Original line number Diff line number Diff line
@@ -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);