openGauss lo_read

lo_read

功能描述

从一个大对象读取数据。

原型

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

参数

表 1 lo_read参数

关键字

参数说明

conn

一个数据库连接

fd

文件描述符

buf

从大对象描述符中读取最多len字节到buf

len

要读取的数据长度

返回值

int:实际读出的字节数将被返回,如果先到达了大对象的末尾返回值可能会小于len。出错时返回值为-1。

示例

请参见示例章节。

详情查看:https://opengauss.org

详情查看:https://docs-opengauss.osinfra.cn

posted @ 2024-05-16 18:50  techbing  阅读(1)  评论(0编辑  收藏  举报