DataModel.exportToString

Exports data contained in model to a string; the format is specified using the format argument, see the gda.data_model.DataModel.exportToFile documentation for more information about the options argument (except for the "OVERWRITE" option).

Warning: this function uses a #GdaDataModelIter iterator, and if model does not offer a random access (check using gda.data_model.DataModel.getAccessFlags), the iterator will be the same as normally used to access data in model previously to calling this method, and this iterator will be moved (point to another row).

See also gda.data_model.DataModel.dumpAsString;

interface DataModel
string
exportToString

Parameters

format gda.types.DataModelIOFormat

the format in which to export data

cols int[]

an array containing which columns of model will be exported, or null for all columns

rows int[]

an array containing which rows of model will be exported, or null for all rows

options gda.set.Set

list of options for the export

Return Value

Type: string

a new string, use glib.global.gfree when no longer needed