Class: OracleDB::Soda::Doc
- Inherits:
-
Object
- Object
- OracleDB::Soda::Doc
- Defined in:
- ext/oracledb/rboradb_soda.c
Instance Method Summary collapse
- #content ⇒ Object
- #created_on ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #key ⇒ Object
- #last_modified ⇒ Object
- #media_type ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
121 122 123 124 |
# File 'ext/oracledb/rboradb.c', line 121
VALUE rboradb_notimplement(int argc, VALUE *argv, VALUE self)
{
rb_notimplement();
}
|
Instance Method Details
#content ⇒ Object
564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 |
# File 'ext/oracledb/rboradb_soda.c', line 564
static VALUE soda_doc_content(VALUE self)
{
SodaDoc_t *doc = To_SodaDoc(self);
const char *val;
uint32_t len;
const char *enc;
if (dpiSodaDoc_getContent(doc->handle, &val, &len, &enc) != DPI_SUCCESS) {
RBORADB_RAISE_ERROR(doc);
}
if (enc == NULL) {
return rb_str_new(val, len);
} else {
return rb_enc_str_new(val, len, rb_enc_find(enc));
}
}
|
#created_on ⇒ Object
581 582 583 584 |
# File 'ext/oracledb/rboradb_soda.c', line 581
static VALUE soda_doc_created_on(VALUE self)
{
GET_STR(SodaDoc, CreatedOn);
}
|
#key ⇒ Object
586 587 588 589 |
# File 'ext/oracledb/rboradb_soda.c', line 586
static VALUE soda_doc_key(VALUE self)
{
GET_STR(SodaDoc, Key);
}
|
#last_modified ⇒ Object
591 592 593 594 |
# File 'ext/oracledb/rboradb_soda.c', line 591
static VALUE soda_doc_last_modified(VALUE self)
{
GET_STR(SodaDoc, LastModified);
}
|
#media_type ⇒ Object
596 597 598 599 |
# File 'ext/oracledb/rboradb_soda.c', line 596
static VALUE soda_doc_media_type(VALUE self)
{
GET_STR(SodaDoc, MediaType);
}
|
#version ⇒ Object
601 602 603 604 |
# File 'ext/oracledb/rboradb_soda.c', line 601
static VALUE soda_doc_version(VALUE self)
{
GET_STR(SodaDoc, Version);
}
|