Browse Source

chore: comment for IStorageAdapterV2 change

Signed-off-by: mertmit <mertmit99@gmail.com>
feat/export-nest
mertmit 2 years ago
parent
commit
eee2ad7da3
  1. 14
      packages/nc-plugin/src/lib/IStorageAdapterV2.ts

14
packages/nc-plugin/src/lib/IStorageAdapterV2.ts

@ -1,6 +1,18 @@
import IStorageAdapter from './IStorageAdapter';
import { Readable } from 'stream'; import { Readable } from 'stream';
import IStorageAdapter from './IStorageAdapter';
/*
#ref: https://github.com/nocodb/nocodb/pull/5608
fileCreateByStream: write file from a readable stream to the storage
fileReadByStream: read file from the storage to a readable stream
getDirectoryList: get files available in a directory
These methods are added to support export/import without buffering all the data in memory.
The methods are only available for Local storage adapter for now, and will be implemented for other adapters later.
The methods are not used in current codebase, but will be used in future.
*/
export default interface IStorageAdapterV2 extends IStorageAdapter { export default interface IStorageAdapterV2 extends IStorageAdapter {
fileCreateByUrl( fileCreateByUrl(
destPath: string, destPath: string,

Loading…
Cancel
Save