gda-statement-struct-compound

gda-statement-struct-compound

Object Hierarchy

    GEnum
    ╰── GdaSqlStatementCompoundType

Description

Functions

gda_sql_statement_compound_set_type ()

void
gda_sql_statement_compound_set_type (GdaSqlStatement *stmt,
                                     GdaSqlStatementCompoundType type);

Specifies stmt 's type of compound

Parameters

stmt

a GdaSqlStatement pointer

 

type

a GdaSqlStatementCompoundType value

 

gda_sql_statement_compound_take_stmt ()

void
gda_sql_statement_compound_take_stmt (GdaSqlStatement *stmt,
                                      GdaSqlStatement *s);

Adds the s sub-statement to the stmt compound statement. s 's reference is transferred to stmt (which means stmt is then responsible for freeing it when no longer needed).

Parameters

stmt

a GdaSqlStatement pointer

 

s

a GdaSqlStatement pointer

 

Types and Values

enum GdaSqlStatementCompoundType

Members

GDA_SQL_STATEMENT_COMPOUND_UNION

   

GDA_SQL_STATEMENT_COMPOUND_UNION_ALL

   

GDA_SQL_STATEMENT_COMPOUND_INTERSECT

   

GDA_SQL_STATEMENT_COMPOUND_INTERSECT_ALL

   

GDA_SQL_STATEMENT_COMPOUND_EXCEPT

   

GDA_SQL_STATEMENT_COMPOUND_EXCEPT_ALL

   

GdaSqlStatementCompound

typedef struct {
	GdaSqlAnyPart                any;
	GdaSqlStatementCompoundType  compound_type;
	GSList                      *stmt_list; /* list of SELECT or COMPOUND statements */
} GdaSqlStatementCompound;