gda.data_handler

Module for [DataHandler] interface

Types 2

interfaceDataHandler
Methods
gda.data_handler.DataHandler getDefault(gobject.types.GType forType)Obtain a pointer to a #GdaDataHandler which can manage #GValue values of type for_type. The returned data handler will be adapted to use the current locale information (for example dates will be fo...
bool acceptsGType(gobject.types.GType type)Checks wether the GdaDataHandler is able to handle the gda type given as argument.
string getDescr()Get a short description of the GdaDataHandler Returns: the description
gobject.value.Value getSaneInitValue(gobject.types.GType type)Creates a new GValue which holds a sane initial value to be used if no value is specifically provided. For example for a simple string, this would return a new value containing the "" string.
string getSqlFromValue(gobject.value.Value value = null)Creates a new string which is an SQL representation of the given value, the returned string can be used directly in an SQL statement. For example if value is a GTYPESTRING, then the returned string...
string getStrFromValue(gobject.value.Value value = null)Creates a new string which is a "user friendly" representation of the given value (in the user's locale, specially for the dates). If the value is NULL or is of type GDATYPENULL, the returned strin...
gobject.value.Value getValueFromSql(string sql, gobject.types.GType type)Creates a new GValue which represents the SQL value given as argument. This is the opposite of the function [gda.data_handler.DataHandler.getSqlFromValue]. The type argument is used to determine th...
gobject.value.Value getValueFromStr(string str, gobject.types.GType type)Creates a new GValue which represents the str value given as argument. This is the opposite of the function [gda.data_handler.DataHandler.getStrFromValue]. The type argument is used to determine th...