CUBRID Engine  latest
esql_gadget.c File Reference
#include "config.h"
#include <stdio.h>
#include "db.h"
#include "esql_gadget.h"
#include "parser.h"
#include "dbtype.h"
Include dependency graph for esql_gadget.c:

Go to the source code of this file.

Macros

#define NOT_FOUND   -1
 

Functions

static int gadget_attr_index (DB_GADGET *gadget, const char *attr_name)
 
DB_GADGETdb_gadget_create (const char *class_name, const char *attribute_names[])
 
void db_gadget_destroy (DB_GADGET *gadget)
 
int db_gadget_bind (DB_GADGET *gadget, const char *attribute_name, DB_VALUE *dbval)
 
DB_OBJECTdb_gadget_exec (DB_GADGET *gadget, int num_dbvals, DB_VALUE dbvals[])
 

Macro Definition Documentation

#define NOT_FOUND   -1

Definition at line 33 of file esql_gadget.c.

Referenced by db_gadget_bind(), db_gadget_create(), and gadget_attr_index().

Function Documentation

void db_gadget_destroy ( DB_GADGET gadget)

Definition at line 163 of file esql_gadget.c.

References attr_val::attr_desc, db_gadget::attrs, db_free_attribute_descriptor(), db_value_clear(), free_and_init, i, NULL, db_gadget::num_attrs, and attr_val::value.

Referenced by db_gadget_create(), free_repetitive(), and uci_static().

Here is the caller graph for this function:

static int gadget_attr_index ( DB_GADGET gadget,
const char *  attr_name 
)
static

Definition at line 330 of file esql_gadget.c.

References attr_val::attr_desc, db_gadget::attrs, CASE_INSENSITIVE, i, sm_descriptor::name, NOT_FOUND, db_gadget::num_attrs, and pt_str_compare().

Referenced by db_gadget_bind(), and db_gadget_create().

Here is the caller graph for this function: