gda.data_model_import
Module for [DataModelImport] class
Types 3
Methods
DataModelImport self()Returns `this`, for use in `with` statements.DataModelImportGidBuilder builder()Get builder for [gda.datamodelimport.DataModelImport] Returns: New builder objectbool randomAccess() @propertyGet `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() @propertyGet `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) @propertySet `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() @propertyGet `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)Creates 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)Creates a new #GdaDataModel object which contains the data stored in the data string.gda.data_model.DataModel newXmlNode(libxml2.types.NodePtr node)Creates a new #GdaDataModel and loads the data in node. The resulting data model can be accessed in a random way.void cleanErrors()Clears the history of errors model has to reportclassDataModelImportGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gda.data_model.DataModelGidBuilderImpl!T
Methods
T dataString(string propval)Set `dataString` property. Params: propval = Data to import, as a string. Returns: Builder instance for fluent chainingT filename(string propval)Set `filename` property. Params: propval = Name of the file to import. Returns: Builder instance for fluent chainingT options(gda.set.Set propval)Set `options` property. Params: propval = Data model options. Returns: Builder instance for fluent chainingT randomAccess(bool propval)Set `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)Set `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)Set `xmlNode` property. Params: propval = Data to import, as a pointer to an XML node (a #xmlNodePtr). Returns: Builder instance for fluent chainingFluent builder for [gda.data_model_import.DataModelImport]
Methods