Skip to main content

Module facade

Module facade 

Source

Traits§

QueryFacade
对外统一查询门面,隐藏底层 MemDB/线程副本等实现选择。 仅提供对象安全的两种查询接口:无参和命名参数。

Functions§

cache_query
带缓存的查询门面:
init_mem_provider
(备选)使用内存/文件 MemDB 作为 provider。
init_thread_cloned_from_authority
直接使用已有的权威库 URI 初始化线程副本 provider。
init_thread_cloned_from_knowdb
设置基于 V2 KnowDB 的全局 Provider:
init_wal_pool_from_authority
初始化基于文件库 + WAL + 多连接池的 Provider(已有权威库)
query
query_cipher
读取密文字典表(单列表 value),用于隐私脱敏加载词表
query_named
门面查询:命名参数
query_row
门面查询:无参