Class: OracleDB::Json

Inherits:
Object
  • Object
show all
Defined in:
ext/oracledb/rboradb_json.c

Instance Method Summary collapse

Instance Method Details

#valueObject



154
155
156
157
158
159
# File 'ext/oracledb/rboradb_json.c', line 154

static VALUE json_value(VALUE self)
{
    Json_t *json = To_Json(self);

    return rboradb_dpiJson2ruby(json->handle, json->dconn);
}

#value=(value) ⇒ Object



345
346
347
348
349
350
# File 'ext/oracledb/rboradb_json.c', line 345

static VALUE json_set_value(VALUE self, VALUE value)
{
    Json_t *json = To_Json(self);
    rboradb_ruby2dpiJson(value, json->handle, json->dconn);
    return Qnil;
}