Class: GDA::SQL::Statement
- Inherits:
-
Object
- Object
- GDA::SQL::Statement
- Defined in:
- lib/gda.rb,
ext/gda/gda_statement.c
Instance Method Summary collapse
Instance Method Details
#ast ⇒ Object
11 12 13 |
# File 'lib/gda.rb', line 11 def ast structure.ast end |
#serialize ⇒ Object
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);
}
|
#sql ⇒ Object
15 16 17 |
# File 'lib/gda.rb', line 15 def sql structure.sql end |
#structure ⇒ Object
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);
}
|