gda.data_model_import

Module for [DataModelImport] class

Types 3

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
DataModelImport self() nothrowReturns `this`, for use in `with` statements.
DataModelImportGidBuilder builder() static nothrowGet builder for [gda.data_model_import.DataModelImport] Returns: New builder object
string dataString() @property nothrowGet `dataString` property. Returns: Data to import, as a string.
string filename() @property nothrowGet `filename` property. Returns: Name of the file to import.
gda.set.Set options() @property nothrowGet `options` property. Returns: Data model options.
bool randomAccess() @property nothrowGet `randomAccess` property. Returns: Defines if the data model will be accessed randomly or through a cursor. If set to false, access will have to be done using a cursor.
bool strict() @property nothrowGet `strict` property. Returns: Defines the behaviour in case the imported data contains recoverable errors (usually too many or too few data per row). If set to true, an error will be reported and...
void strict(bool propval) @property nothrowSet `strict` property. Params: propval = Defines the behaviour in case the imported data contains recoverable errors (usually too many or too few data per row). If set to true, an error will be rep...
void * xmlNode() @property nothrowGet `xmlNode` property. Returns: Data to import, as a pointer to an XML node (a #xmlNodePtr).
gda.data_model.DataModel newFile(string filename, bool randomAccess, gda.set.Set options = null) static nothrowCreates a new #GdaDataModel object which contains the data stored within the filename file.
gda.data_model.DataModel newMem(string data, bool randomAccess, gda.set.Set options = null) static nothrowCreates a new #GdaDataModel object which contains the data stored in the data string.
gda.data_model.DataModel newXmlNode(libxml2.types.NodePtr node) static nothrowCreates a new #GdaDataModel and loads the data in node. The resulting data model can be accessed in a random way.
void cleanErrors() nothrowClears the history of errors model has to report
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gda.data_model_import.DataModelImport

Methods
T dataString(string propval) nothrowSet `dataString` property. Params: propval = Data to import, as a string. Returns: Builder instance for fluent chaining
T filename(string propval) nothrowSet `filename` property. Params: propval = Name of the file to import. Returns: Builder instance for fluent chaining
T options(gda.set.Set propval) nothrowSet `options` property. Params: propval = Data model options. Returns: Builder instance for fluent chaining
T randomAccess(bool propval) nothrowSet `randomAccess` property. Params: propval = Defines if the data model will be accessed randomly or through a cursor. If set to false, access will have to be done using a cursor. Returns: Builder...
T strict(bool propval) nothrowSet `strict` property. Params: propval = Defines the behaviour in case the imported data contains recoverable errors (usually too many or too few data per row). If set to true, an error will be rep...
T xmlNode(void * propval) nothrowSet `xmlNode` property. Params: propval = Data to import, as a pointer to an XML node (a #xmlNodePtr). Returns: Builder instance for fluent chaining
Methods
DataModelImport build() nothrowCreate object from builder. Returns: New object