Class (GI Struct)

GLib-2.0GLibTuplesDeprecated 2.26

The GLib.Tuples struct is used to return records (or tuples) from the GLib.Relation by g_relation_select(). It only contains one public member - the number of records that matched. To access the matched records, you must use g_tuples_index().

since 2.26: Rarely used API

Index

Constructors

Properties

Methods

Constructors

Properties

len: number
$gtype: GType<Tuples>

Methods

  • Frees the records which were returned by g_relation_select(). This should always be called after g_relation_select() when you are finished with the records. The records are not removed from the GLib.Relation.

    Returns void

  • Gets a field from the records returned by g_relation_select(). It returns the given field of the record at the given index. The returned value should not be changed.

    Parameters

    • Deprecatedindex_: number

      the index of the record.

    • Deprecatedfield: number

      the field to return.

    Returns any

    the field of the record.