Updating rows kinda works.
Blocking calls are still used.
This commit is contained in:
parent
99d738ee65
commit
628c16e2f4
10 changed files with 179 additions and 81 deletions
|
|
@ -5,6 +5,8 @@
|
|||
#include <QString>
|
||||
#include <libpq-fe.h>
|
||||
#include "Pgsql_declare.h"
|
||||
#include "Pgsql_oids.h"
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
namespace Pgsql {
|
||||
|
||||
|
|
@ -18,8 +20,12 @@ namespace Pgsql {
|
|||
~Params();
|
||||
|
||||
|
||||
void add(const QString &s, Oid oid=VARCHAROID);
|
||||
void add(const char *data, Oid oid=VARCHAROID);
|
||||
void add(const QString &s, Oid oid=varchar_oid);
|
||||
void add(const char *data, Oid oid=varchar_oid);
|
||||
void add(boost::optional<std::string> s, Oid oid=varchar_oid)
|
||||
{
|
||||
add(s ? s->c_str() : nullptr, oid);
|
||||
}
|
||||
//void addBinary(const char *data, int length, Oid oid);
|
||||
void clear();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue