RECEIVE_SRPC_METHOD_2(NamingServiceServer, bind, srpc::RString, name, srpc::RString, value) { bool succeeded = nameValues_.insert(NameValues::value_type(name, value)).second; onBind(name, value, succeeded); }
SqlStatement &SqlStatement::bindSame() { onBind(); mBindNext++; return *this; }
SqlStatement &SqlStatement::bindNull() { onBind(); if (sqlite3_bind_null(mpVM, mBindNext++) != SQLITE_OK) throw SqlDatabaseException("Error binding NULL param"); return *this; }
SqlStatement &SqlStatement::bind(const unsigned char* blobValue, int nLen) { onBind(); if (sqlite3_bind_blob(mpVM, mBindNext++, (const void*)blobValue, nLen, SQLITE_TRANSIENT) != SQLITE_OK) throw SqlDatabaseException("Error binding blob param"); return *this; }
SqlStatement &SqlStatement::bind(const double dValue) { onBind(); if (sqlite3_bind_double(mpVM, mBindNext++, dValue) != SQLITE_OK) throw SqlDatabaseException("Error binding double param"); return *this; }
SqlStatement &SqlStatement::bind(const int nValue) { onBind(); if (sqlite3_bind_int(mpVM, mBindNext++, nValue) != SQLITE_OK) throw SqlDatabaseException("Error binding int param"); return *this; }
SqlStatement &SqlStatement::bind(const char* szValue) { onBind(); if (sqlite3_bind_text(mpVM, mBindNext++, szValue, -1, SQLITE_TRANSIENT) != SQLITE_OK) throw SqlDatabaseException("Error binding string param."); return *this; }