类 StorageDelegate::StorageSettings

StorageDelegate 使用的设置。

总结

成员 说明
public 存储设置(bool isRemote存储, bool isInMemory存储Supported, const std::string& onDiskExtension) 用于配置存储设置的界面。
public bool IsRemoteStorage() const 获取是否使用远程存储。
public bool IsInMemoryStorageSupported() const 获取委托是否支持内存中存储。
public std::string OnDiskExtension() const 获取委托在磁盘上存储表时将使用的扩展。

成员

StorageSettings 函数

用于配置存储设置的界面。

参数:

  • isRemoteStore:表示存储是否为远程。 这将被纳入内部加密的考虑范围。

  • isInMemoryStorageSupported:声明委托是否支持内存中存储。

  • onDiskExtension:将用于存储数据的文件扩展名(如果需要)。 应以“.”开头。

IsRemoteStorage 函数

获取是否使用远程存储。

返回结果:获取是否使用远程存储。

IsInMemoryStorageSupported 函数

获取委托是否支持内存中存储。

返回:如此 如果委托支持内存中存储。

OnDiskExtension 函数

获取委托在磁盘上存储表时将使用的扩展。

返回:将使用的扩展。 默认为“.sqlite3”。 扩展前面将有“.”。