DataExporter
protocol DataExporter
Protocol used to define a data exporter object.
-
Initiate a data export process for a file format.
Declaration
Swift
func export(format: FileFormat, range: (Date, Date), completion: (Result<URL, Error>) -> Void)Parameters
formatThe file format to be used for the output.
rangeThe range of dates for the data query.
completionThe completion closure with a Result type of
URLandError. -
Initiate a data export process for a file format.
Declaration
Swift
func export(format: FileFormat, from beginDate: Date, to endDate: Date, completion: (Result<URL, Error>) -> Void)Parameters
formatThe file format to be used for the output.
beginDataThe inital date for the data query.
endDataThe end date for the data query.
completionThe completion closure with a Result type of
URLandError.
View on GitHub
Install in Dash
DataExporter Protocol Reference