# sqlite.ciphers 库模块帮助文档

<details>  <summary>必读，点这里展开</summary>  <p>
此扩展库基于开源项目 SQLite3 Multiple Ciphers 
https://github.com/utelle/SQLite3MultipleCiphers

开发文档: 
https://utelle.github.io/SQLite3MultipleCiphers/docs/configuration/config_capi/
</p></details>

## sqlite 成员列表 <a id="sqlite" href="#sqlite">&#x23;</a>

### sqlite.ciphers("\数据库路径") <a id="sqlite.ciphers" href="#sqlite.ciphers">&#x23;</a>
这个函数是 sqlite 构造函数的别名,  
参数一指定数据库路径,支持自动创建数据库文件.  
第二个参数（可选参数）指定数据库密钥

### sqlite.ciphers("file:数据库路径") <a id="sqlite.ciphers" href="#sqlite.ciphers">&#x23;</a>
使用 URI 指定数据库路径与参数。  
参数@2 可选用表指定 URI 参数，或用字符串指定密钥。  
也可以在参数 @1 的 URI 后面直接写参数。  
文档 https://www.sqlite.org/uri.html

### sqlite.ciphers() <a id="sqlite.ciphers" href="#sqlite.ciphers">&#x23;</a>
[返回对象:sqliteConnObject](#sqliteConnObject)

## sqlite.ciphers 成员列表 <a id="sqlite.ciphers" href="#sqlite.ciphers">&#x23;</a>

支持多种加密算法的 sqlite 扩展库,  
导入此扩展库以后,代码中仍然可以使用 sqlite  
参考: https://utelle.github.io/SQLite3MultipleCiphers/

### sqlite.ciphers.config <a id="sqlite.ciphers.config" href="#sqlite.ciphers.config">&#x23;</a>
配置数据库。  
建议直接调用 sqlite 对象的 config 成员函数。  
仅 sqlite.ciphers 等 sqlite 增强扩展库支持此函数。  
用法参考相关扩展库文档。

### sqlite.ciphers.config(db,name,value) <a id="sqlite.ciphers.config" href="#sqlite.ciphers.config">&#x23;</a>
配置数据库。  
成功返回当前配置值，失败返回 -1。  
@db 指定 sqlite 数据库对象。  
@name 指定要修改的配置名，也可以指定包含多个配置名值对的表。  
@value 指定配置值，不指定值则用返回当前值。

### sqlite.ciphers.configCipher <a id="sqlite.ciphers.configCipher" href="#sqlite.ciphers.configCipher">&#x23;</a>
配置加密算法参数。  
建议直接调用 sqlite 对象的 configCipher 成员函数。  
仅 sqlite.ciphers 等 sqlite 增强扩展库支持此函数。  
用法参考相关扩展库文档。

### sqlite.ciphers.configCipher(db,cipherName,name,value) <a id="sqlite.ciphers.configCipher" href="#sqlite.ciphers.configCipher">&#x23;</a>
配置加密算法参数。  
成功返回当前配置值，失败返回 -1。  
@db 指定 sqlite 数据库对象。  
@cipherName 指定加密算法名称。
