DataStorageHandler

Trait fo Data store management

Companion:
object
class Object
trait Matchable
class Any
object ExportHandler.type
object ImportHandler.type

Value members

Concrete methods

def loadDataFromFile[A](jsonParser: JsonParser[A], filePath: String): Try[A]

Load data from a file and return the object depending on which JsonParser type is passed

Load data from a file and return the object depending on which JsonParser type is passed

Returns:

a Try[A]

def storeDataToPath[A](data: A, filePath: String): Try[String]

Store JSON parsed data in a file depending on which JsonParser type is passed

Store JSON parsed data in a file depending on which JsonParser type is passed

Returns:

a Try[String] with file path