Skip to content
Snippets Groups Projects
Commit 40a4a6dc authored by Alexander Kreft's avatar Alexander Kreft
Browse files

DRAFT: add update_enity

parent b3074c88
No related branches found
No related tags found
1 merge request!8F full ak
Pipeline #12578 passed with warnings
Pipeline: CaosDB Julia Integration Tests

#12580

    ...@@ -159,6 +159,27 @@ function add_insert_entity(transaction::Ref{_Transaction}, entity::Ref{CaosDB.En ...@@ -159,6 +159,27 @@ function add_insert_entity(transaction::Ref{_Transaction}, entity::Ref{CaosDB.En
    CaosDB.Exceptions.evaluate_return_code(err_code) CaosDB.Exceptions.evaluate_return_code(err_code)
    end end
    """
    function add_update_entity(transaction::Ref{_Transaction}, entity::Ref{_CaosDB.Entity.Entity})
    Add a sub-request to update a single entity to the given `transaction`.
    !!! info
    This does not execute the transaction.
    """
    function add_update_entity(transaction::Ref{_Transaction}, entity::Ref{CaosDB.Entity._Entity})
    err_code = ccall(
    (:caosdb_transaction_transaction_update_entity, CaosDB.library_name),
    Cint,
    (Ref{_Transaction}, Ref{CaosDB.Entity._Entity}),
    transaction,
    entity,
    )
    CaosDB.Exceptions.evaluate_return_code(err_code)
    end
    """ """
    function add_retrieve_by_id( function add_retrieve_by_id(
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment