set_attribute


Description:

public void set_attribute (string attribute, Value? value, DestroyNotify? destroy)

Set the value associated to a named attribute.

Attributes can have any name, but Libgda proposes some default names, see this section. If there is already an attribute named attribute set, then its value is replaced with the new value, except if value is null, in which case the attribute is removed.

Warning: attribute is not copied, if it needs to be freed when not used anymore, then destroy should point to the functions which will free it (typically g_free). If attribute does not need to be freed, then destroy can be null.

Parameters:

this

a MetaTableColumn

attribute

attribute name as a static string

value

a Value, or null

destroy

function called when attribute has to be freed, or null