用户可以通过系统表查询系统信息,PinusDB包含如下系统表:
sys_config 数据库系统的配置信息
表结构
配置项 | 说明 |
address | 数据库服务器的IP地址 |
port | 数据库服务器的端口号 |
cacheSize | 数据库缓存大小,单位为MB |
writeCache | 写数据缓存大小,单位为MB |
queryTimeOut | 查询超时时间,单位为秒 |
insertValidDay | 插入时间窗口,单位为天 |
tabPath | 表目录 |
normalDataPath | 普通数据目录 |
compressDataPath | 压缩数据目录 |
commitLogPath | 数据日志目录 |
sysLogPath | 系统日志目录 |
logLevel | 输出日志级别,debug, info, warning, error |
compressFlag | 是否启动压缩,true, false |
majorVersion | 服务主版本 |
minorVersion | 服务次版本 |
buildVersion | 服务编译版本 |
表结构
sys_table 表信息,包含系统中所有的表名
表结构
列名 | 类型 | 描述 |
tabName | string | 表名 |
sys_column 表的列信息
sys_dataFile 数据文件表
表结构
列名 | 类型 | 描述 |
tabname | string | 表名 |
fileDate | string | 文件存储的数据日期 |
fileType | string | 文件类型,normal:普通文件;compress:压缩文件。 |
sys_dev 设备表
表结构
表结构
列名 | 类型 | 描述 |
host | string | 客户段IP |
port | bigint | 客户段端口号 |
user | string | 登录用户 |
userrole | string | 用户角色 |
conntime | datetime | 连接时间 |