RTA API 详细解析:功能、使用与错误处理
1. RTA API 概述
RTA API 包含六个子程序,这些子程序通常会返回以下几种值:
/* successfully executed request or command */
#define RTA_SUCCESS (0)
/* input did not have a full command */
#define RTA_NOCMD (1)
/* encountered an internal error */
#define RTA_ERROR (2)
/* DB client requests a session close */
#define RTA_CLOSE (3)
/* Insufficient output buffer space */
#define RTA_NOBUF (4)
以下是 RTA PostgreSQL API 子程序的总结:
| 子程序 | 描述 |
| ---- | ---- |
| dbcommand() | 为 PostgreSQL 客户端提供接口 |
| rta_add_table() | 向 RTA 数据库添加表及其列 |
| SQL_string() | 在 RTA 数据库中执行 SQL 语句 |
| rta_config_dir() | 设置保存文件目录的默认路径 |
|
超级会员免费看
订阅专栏 解锁全文
32

被折叠的 条评论
为什么被折叠?



