关于 SequoiaDB
快速入门
安装
基本操作
数据模型
SQL引擎
S3引擎
系统架构
数据库管理
连接器
驱动
参考手册
故障排除
SAC 管控中心
Web服务
版本信息
IniFile.setSectionComment( <section> <comment> )
IniFile
设置指定 section 的注释。
参数名 | 参数类型 | 默认值 | 描述 | 是否必填 |
---|---|---|---|---|
section | string | --- | 段名 | 是 |
comment | string | --- | 添加的注释 | 是 |
执行成功,无返回值.
执行失败,抛异常。
如果出错则抛异常,并输出错误信息,可以通过getLastErrMsg()获取错误信息或通过getLastError()获取错误码。 关于错误处理可以参考常见错误处理指南。
常见错误可参考错误码。
打开一个 INI 文件。
> var ini = new IniFile( "/opt/sequoiadb/file.ini", SDB_INIFILE_FLAGS_DEFAULT )
设置指定 section 的注释。
> ini.setSectionComment( "info", "personal information" )