跳到主要内容

StorageFilesystemFactory

type StorageFilesystemFactory = (rootDir, context) => StorageFilesystem;

Defined in: packages/rxdb-plugin-storage/src/filesystem/storage-filesystem.ts:172

按存储根目录创建后端实例的工厂。

Parameters​

ParameterTypeDescription
rootDirstring已规范化的存储根目录相对路径(如 files)。
contextStorageFilesystemContext宿主信息,供后端做启用前校验。

Returns​

StorageFilesystem