Class: ODPI::Dpi::QueryInfo

Inherits:
Object
  • Object
show all
Defined in:
ext/odpi_ext/rbdpi-struct.c,
ext/odpi_ext/rbdpi-struct.c

Overview

This class represents query metadata.

See Also:

Instance Method Summary collapse

Constructor Details

#initializeObject


41
42
43
44
45
# File 'ext/odpi_ext/rbdpi.c', line 41

VALUE rbdpi_initialize_error(VALUE self)
{
    rb_raise(rb_eRuntimeError, "could not initialize by %s::new", rb_obj_classname(self));
    return Qnil;
}

Instance Method Details

#nameString

Gets the name of the column which is being queried

Returns:

  • (String)

532
533
534
535
# File 'ext/odpi_ext/rbdpi-struct.c', line 532

static VALUE query_info_get_name(VALUE self)
{
    return rb_ivar_get(self, id_at_name);
}

#nullable?Boolean

Gets whether the data that is being queried may return null values

Returns:

  • (Boolean)
  • (Boolean)

552
553
554
555
# File 'ext/odpi_ext/rbdpi-struct.c', line 552

static VALUE query_info_get_nullable_p(VALUE self)
{
    return rb_ivar_get(self, id_at_nullable);
}

#type_infoODPI::Dpi::DataType

Gets the type of data of the column that is being queried.

Returns:


542
543
544
545
# File 'ext/odpi_ext/rbdpi-struct.c', line 542

static VALUE query_info_get_type_info(VALUE self)
{
    return rb_ivar_get(self, id_at_type_info);
}