Variables Table

## Variables Table Variables Table — A table of variables with optional bound literal values. |

## Functions

rasqal_variables_table * | rasqal_new_variables_table ()
void | rasqal_free_variables_table ()
rasqal_variable * | rasqal_variables_table_add ()
rasqal_variable * | rasqal_variables_table_add2 ()
int | rasqal_variables_table_add_variable ()
rasqal_variable * | rasqal_variables_table_get_by_name ()
int | rasqal_variables_table_contains ()

## Types and Values

typedef | rasqal_variables_table

## Description

A table of rasqal_variable usually associated with a rasqal_query query or rasqal_query_results query result set. The order of the variables in the table may be significant, such as for a standalone query result set in which case it might define the order of variables in resulting rows.

## Functions

### rasqal_new_variables_table ()

    rasqal_variables_table *
    rasqal_new_variables_table (rasqal_world *world);

#### Returns

### rasqal_free_variables_table ()

    void
    rasqal_free_variables_table (rasqal_variables_table *vt);

### rasqal_variables_table_add ()

    rasqal_variable *
    rasqal_variables_table_add (rasqal_variables_table *vt,
                                rasqal_variable_type type,
                                const char *name,
                                rasqal_literal *value);

`rasqal_variables_table_add` is deprecated and should not be used in newly-written code.

#### Returns

### rasqal_variables_table_add2 ()

    rasqal_variable *
    rasqal_variables_table_add2 (rasqal_variables_table *vt,
                                 rasqal_variable_type type,
                                 const char *name,
                                 size_t name_len,
                                 rasqal_literal *value);

#### Returns

### rasqal_variables_table_add_variable ()

    int
    rasqal_variables_table_add_variable (rasqal_variables_table *vt,
                                         rasqal_variable *variable);

#### Returns

### rasqal_variables_table_get_by_name ()

    rasqal_variable *
    rasqal_variables_table_get_by_name (rasqal_variables_table *vt,
                                        rasqal_variable_type type,
                                        const char *name);

#### Returns

### rasqal_variables_table_contains ()

    int
    rasqal_variables_table_contains (rasqal_variables_table *vt,
                                     rasqal_variable_type type,
                                     const char *name);

#### Returns

## Types and Values

### rasqal_variables_table

    typedef struct rasqal_variables_table_s rasqal_variables_table;

Internal - for now