MidgardSqlQueryConstraint

MidgardSqlQueryConstraint

Synopsis

struct              MidgardSqlQueryConstraint;
struct              MidgardSqlQueryConstraintClass;
MidgardSqlQueryConstraint * midgard_sql_query_constraint_new
                                                        (MidgardSqlQueryColumn *column,
                                                         const gchar *op,
                                                         MidgardQueryHolder *holder);
MidgardSqlQueryColumn * midgard_sql_query_constraint_get_column
                                                        (MidgardSqlQueryConstraint *self);
void                midgard_sql_query_constraint_set_column
                                                        (MidgardSqlQueryConstraint *self,
                                                         MidgardSqlQueryColumn *column,
                                                         GError **error);
const gchar *       midgard_sql_query_constraint_get_operator
                                                        (MidgardSqlQueryConstraint *self);
void                midgard_sql_query_constraint_set_operator
                                                        (MidgardSqlQueryConstraint *self,
                                                         const gchar *op,
                                                         GError **error);
MidgardQueryHolder * midgard_sql_query_constraint_get_holder
                                                        (MidgardSqlQueryConstraint *self);

Object Hierarchy

  GObject
   +----MidgardSqlQueryConstraint

Implemented Interfaces

MidgardSqlQueryConstraint implements MidgardQueryConstraintSimple and MidgardValidable.

Properties

  "column"                   MidgardSqlQueryColumn*  : Read / Write
  "holder"                   MidgardQueryHolder*   : Read / Write
  "operator"                 gchar*                : Read / Write

Description

Details

struct MidgardSqlQueryConstraint

struct MidgardSqlQueryConstraint;


struct MidgardSqlQueryConstraintClass

struct MidgardSqlQueryConstraintClass {
	GObjectClass parent;
	MidgardQueryConstraintSimple **(*list_constraints) (MidgardSqlQueryConstraint *self, guint *n_objects);
};


midgard_sql_query_constraint_new ()

MidgardSqlQueryConstraint * midgard_sql_query_constraint_new
                                                        (MidgardSqlQueryColumn *column,
                                                         const gchar *op,
                                                         MidgardQueryHolder *holder);

column :

MidgardSqlQueryColumn instance

op :

constraint operator

holder :

MidgardQueryHolder instance

Returns :

new MidgardSqlQueryConstraint instance, or NULL on failure

Since 10.05.6


midgard_sql_query_constraint_get_column ()

MidgardSqlQueryColumn * midgard_sql_query_constraint_get_column
                                                        (MidgardSqlQueryConstraint *self);

self :

MidgardSqlQueryConstraint instance

Returns :

MidgardSqlQueryColumn associated with constraint or NULL. [transfer full]

Since 10.05.6


midgard_sql_query_constraint_set_column ()

void                midgard_sql_query_constraint_set_column
                                                        (MidgardSqlQueryConstraint *self,
                                                         MidgardSqlQueryColumn *column,
                                                         GError **error);

self :

MidgardSqlQueryConstraint instance

column :

MidgardSqlQueryColumn to associate with self constraint

error :

pointer to store returned error

Since 10.05.6


midgard_sql_query_constraint_get_operator ()

const gchar *       midgard_sql_query_constraint_get_operator
                                                        (MidgardSqlQueryConstraint *self);

self :

MidgardSqlQueryConstraint instance

Returns :

operator type associated with self constraint, or NULL. [transfer none]

Since 10.05.6


midgard_sql_query_constraint_set_operator ()

void                midgard_sql_query_constraint_set_operator
                                                        (MidgardSqlQueryConstraint *self,
                                                         const gchar *op,
                                                         GError **error);

Check midgard_query_constraint_new() for valid operator types.

self :

MidgardSqlQueryConstraint instance

op :

operator to associate with constraint

error :

pointer to store returned error

Since 10.05.6


midgard_sql_query_constraint_get_holder ()

MidgardQueryHolder * midgard_sql_query_constraint_get_holder
                                                        (MidgardSqlQueryConstraint *self);

self :

MidgardSqlQueryConstraint instance

Returns :

MidgardQueryHolder associated with self constraint, or NULL. [transfer full]

Since 10.05.6

Property Details

The "column" property

  "column"                   MidgardSqlQueryColumn*  : Read / Write


The "holder" property

  "holder"                   MidgardQueryHolder*   : Read / Write


The "operator" property

  "operator"                 gchar*                : Read / Write

Default value: ""