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



11
12
13
# File 'lib/gda.rb', line 11

def ast
  structure.ast
end

#serializeObject



6
7
8
9
10
11
12
13
14
15
# File 'ext/gda/gda_statement.c', line 6

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

    Data_Get_Struct(self, GdaStatement, stmt);

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

#sqlObject



15
16
17
# File 'lib/gda.rb', line 15

def sql
  structure.sql
end

#structureObject



35
36
37
38
39
40
41
42
43
44
45
# File 'ext/gda/gda_statement.c', line 35

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

    Data_Get_Struct(self, GdaStatement, stmt);

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

    return Data_Wrap_Struct(cStructure, NULL, gda_sql_statement_free, sqlst);
}