logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

odbx_lo_close - Closes a large object reference

Description

       This function commits any changes made by odbx_lo_write() and closes the open large object handle. To om‐
       mit  calling this function on open large object handles will result in memory leaks as the data structure
       and dependent memory aren't freed.

       The lo parameter has to be the large object handle created and returned by odbx_lo_open() via its  second
       parameter.  It  becomes invalid after it was supplied to odbx_lo_close() and this function will return an
       error in this case.

Errors

       -ODBX_ERR_BACKEND
              The native database library couldn't close the large object successfully

       -ODBX_ERR_HANDLE
              lo is NULL or the supplied large object handle is invalid

Name

       odbx_lo_close - Closes a large object reference

Return Value

odbx_lo_close() returns ODBX_ERR_SUCCESS, or an error code whose value is less than zero if  one  of  the
       operations  couldn't  be completed successfully. Possible error codes are listed in the error section and
       they can be feed to odbx_error() and odbx_error_type() to get further details.

See Also

odbx_lo_open()

                                                 8 January 2025                                 odbx_lo_close(3)

Synopsis

       #include <opendbx/api.h>

       int odbx_lo_close (odbx_lo_t* lo);

See Also