Class: OracleDB::Subscr

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

Defined Under Namespace

Classes: Message

Instance Method Summary collapse

Instance Method Details

#prepare_stmt(sql) ⇒ Object



407
408
409
410
411
412
413
414
415
416
417
# File 'ext/oracledb/rboradb_subscr.c', line 407

static VALUE subscr_prepare_stmt(VALUE self, VALUE sql)
{
    Subscr_t *subscr = To_Subscr(self);
    dpiStmt *handle;

    ExportString(sql);
    if (dpiSubscr_prepareStmt(subscr->handle, RSTRING_PTR(sql), RSTRING_LEN(sql), &handle) != DPI_SUCCESS) {
        RBORADB_RAISE_ERROR(subscr);
    }
    return rboradb_from_dpiStmt(handle, subscr->dconn, 0, 0);
}

#unsubscribeObject



419
420
421
422
423
424
425
426
427
# File 'ext/oracledb/rboradb_subscr.c', line 419

static VALUE subscr_unsubscribe(VALUE self)
{
    Subscr_t *subscr = To_Subscr(self);

    if (rbOraDBConn_unsubscribe(subscr->dconn->handle, subscr->handle) != DPI_SUCCESS) {
        RBORADB_RAISE_ERROR(subscr);
    }
    return Qnil;
}