Interface DataAccessInterface
Methods
checkIfExist
- checkIfExist(source: SourceEnum, path: string): Promise<boolean>
-
Parameters
Returns Promise<boolean>
connect
- connect(): Promise<boolean>
deleteData
- deleteData(source: SourceEnum, path: string): Promise<any>
-
Parameters
Returns Promise<any>
readCollection
- readCollection(source: SourceEnum, path: string): Promise<any>
-
Parameters
Returns Promise<any>
readData
- readData(source: SourceEnum, path: string): Promise<any>
-
Parameters
Returns Promise<any>
removeCollection
- removeCollection(source: SourceEnum, path: string): Promise<boolean>
-
Parameters
Returns Promise<boolean>
writeData
- writeData(source: SourceEnum, path: string, data: any): Promise<any>
-
Parameters
Returns Promise<any>
Interface to implements for each Data Provider/Storage. ie: file system storage, database, etc