DataModelImport
Object Hierarchy:
Description:
[ CCode ( type_id = "gda_data_model_import_get_type ()" ) ]
public class DataModelImport : Object, DataModel
public class DataModelImport : Object, DataModel
Namespace: Gda
Package: libgda-5.0
Content:
Properties:
- public string data_string { owned get; construct; }
Data to import, as a string.
- public string filename { owned get; construct; }
Name of the file to import.
- public Set options { owned get; construct; }
Data model options.
- public bool random_access { get; construct; }
Defines if the data model will be accessed randomly or through a cursor.
- public bool strict { get; set construct; }
Defines the behaviour in case the imported data contains recoverable errors (usually too many or too few data per row).
- public void* xml_node { get; construct; }
Data to import, as a pointer to an XML node (a
xmlNodePtr
).
Static methods:
- public static DataModel new_file (string filename, bool random_access, Set? options)
Creates a new DataModel object which contains the data stored within the
filename
file. - public static DataModel new_mem (string data, bool random_access, Set? options)
Creates a new DataModel object which contains the data stored in the
data
string. - public static DataModel new_xml_node (unowned Node* node)
Creates a new DataModel and loads the data in
node
.
Creation methods:
- protected DataModelImport ()
Methods:
- public void clean_errors ()
Clears the history of errors this has to report
- public unowned SList<Error> get_errors ()
Get the list of errors which this has to report.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gda.DataModel