Skip to content
Snippets Groups Projects

ENH: Add retrieval and queries to Extern C interface

Merged Florian Spreckelsen requested to merge f-extended-c into f-files
2 unresolved threads
1 file
+ 4
5
Compare changes
  • Side-by-side
  • Inline
+ 4
5
@@ -250,7 +250,7 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
caosdb_connection_connection *connection,
caosdb_transaction_transaction *out),
{
caosdb::connection::Connection *wrapped_connection =
auto *wrapped_connection =
static_cast<caosdb::connection::Connection *>(
connection->wrapped_connection);
out->wrapped_transaction =
@@ -263,18 +263,17 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
caosdb_transaction_transaction *transaction,
const char *id),
{
caosdb::transaction::Transaction *wrapped_transaction =
auto *wrapped_transaction =
static_cast<caosdb::transaction::Transaction *>(
transaction->wrapped_transaction);
wrapped_transaction->RetrieveById(id);
return 0;
return wrapped_transaction->RetrieveById(std::string(id));
})
ERROR_RETURN_CODE(GENERIC_ERROR,
int caosdb_transaction_transaction_execute(
caosdb_transaction_transaction *transaction),
{
caosdb::transaction::Transaction *wrapped_transaction =
auto *wrapped_transaction =
static_cast<caosdb::transaction::Transaction *>(
transaction->wrapped_transaction);
wrapped_transaction->Execute();
Loading