lo_write

Function

Write data to a large object.

Prototype

int lo_write(PGconn* conn, int fd, const char* buf, size_t len);

Parameter

Table 1 lo_write parameters

Keyword

Parameter Description

conn

A database connection

fd

File descriptor

buf

The data to be written must have a length equal to len

len

The length to be written

Return Value

int The function will return the actual number of bytes written. When an error occurs, return -1。

Example

For details, see Example.

Feedback
编组 3备份
    openGauss 2024-05-19 00:42:09
    cancel