Class: GDA::SQL::Statement

Inherits:
Object
  • Object
show all
Defined in:
lib/gda.rb,
ext/gda/gda_statement.c

Instance Method Summary collapse

Instance Method Details

#astObject



9
10
11
# File 'lib/gda.rb', line 9

def ast
  structure.ast
end

#serializeObject



28
29
30
31
32
33
34
35
# File 'ext/gda/gda_statement.c', line 28

static VALUE serialize(VALUE self)
{
    GdaStatement * stmt = gda_statement_unwrap(self);
    gchar * string;

    string = gda_statement_serialize(stmt);
    return rb_str_new2(string);
}

#sqlObject



13
14
15
# File 'lib/gda.rb', line 13

def sql
  structure.sql
end

#structureObject



51
52
53
54
55
56
57
58
59
# File 'ext/gda/gda_statement.c', line 51

static VALUE structure(VALUE self)
{
    GdaStatement * stmt = gda_statement_unwrap(self);
    GdaSqlStatement * sqlst;

    g_object_get(G_OBJECT(stmt), "structure", &sqlst, NULL);

    return TypedData_Wrap_Struct(cStructure, &structure_type, sqlst);
}