Method

PgsqlResultget_field_name

Declaration

const char*
pgsql_result_get_field_name (
  PgsqlResult* self,
  guint field
)

Description

Gets the name of a field by index.

Parameters

field

Type: guint

The field index.

Return value

Type: const char*

The field name, or NULL.

The returned data is owned by the instance.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.