CUBRID Engine  latest
db_collection.c File Reference
#include <assert.h>
#include "db_stub.h"
#include "api_util.h"
#include "dbi.h"
Include dependency graph for db_collection.c:

Go to the source code of this file.

Classes

struct  collection_s_
 

Typedefs

typedef struct collection_s_ COLLECTION_
 

Functions

static int col_api_length (API_COLLECTION *col, int *len)
 
static int col_api_insert (API_COLLECTION *col, long pos, CI_TYPE type, void *ptr, size_t size)
 
static int col_api_update (API_COLLECTION *col, long pos, CI_TYPE type, void *ptr, size_t size)
 
static int col_api_delete (API_COLLECTION *col, long pos)
 
static int col_api_get_elem_domain_info (API_COLLECTION *col, long pos, CI_TYPE *type, int *precision, int *scale)
 
static int col_api_get_elem (API_COLLECTION *col, long pos, CI_TYPE type, void *addr, size_t len, size_t *outlen, bool *isnull)
 
static void col_dtorf (VALUE_AREA *va, API_VALUE *val)
 
static void col_api_destroy (API_COLLECTION *col)
 
static int apif_collection_create (BIND_HANDLE conn, COLLECTION_ **rc)
 
static int fill_collection (COLLECTION_ *co, DB_SET *set)
 
int api_collection_create_from_db_value (BIND_HANDLE conn, const DB_VALUE *val, API_COLLECTION **rc)
 
static int set_to_db_value_mapf (void *arg, int idx, VALUE_AREA *va, API_VALUE *aval)
 
int api_collection_set_to_db_value (API_COLLECTION *col, DB_VALUE *val)
 
int api_collection_create (BIND_HANDLE conn, API_COLLECTION **rc)
 

Variables

static API_COLLECTION_IFS COL_IFS_
 

Typedef Documentation

typedef struct collection_s_ COLLECTION_

Definition at line 28 of file db_collection.c.

Function Documentation

int api_collection_create ( BIND_HANDLE  conn,
API_COLLECTION **  rc 
)

Definition at line 467 of file db_collection.c.

References apif_collection_create(), ER_INTERFACE_INVALID_ARGUMENT, NO_ERROR, and NULL.

Referenced by ci_collection_new_impl().

Here is the caller graph for this function:

int api_collection_create_from_db_value ( BIND_HANDLE  conn,
const DB_VALUE val,
API_COLLECTION **  rc 
)
static int apif_collection_create ( BIND_HANDLE  conn,
COLLECTION_ **  rc 
)
static
static int col_api_delete ( API_COLLECTION col,
long  pos 
)
static
static void col_api_destroy ( API_COLLECTION col)
static
static int col_api_get_elem ( API_COLLECTION col,
long  pos,
CI_TYPE  type,
void *  addr,
size_t  len,
size_t *  outlen,
bool isnull 
)
static
static int col_api_get_elem_domain_info ( API_COLLECTION col,
long  pos,
CI_TYPE *  type,
int *  precision,
int *  scale 
)
static
static int col_api_insert ( API_COLLECTION col,
long  pos,
CI_TYPE  type,
void *  ptr,
size_t  size 
)
static
static int col_api_length ( API_COLLECTION col,
int *  len 
)
static
static int col_api_update ( API_COLLECTION col,
long  pos,
CI_TYPE  type,
void *  ptr,
size_t  size 
)
static
static void col_dtorf ( VALUE_AREA va,
API_VALUE val 
)
static

Definition at line 241 of file db_collection.c.

References assert, db_value_free(), and NULL.

Referenced by col_api_destroy().

Here is the caller graph for this function:

static int set_to_db_value_mapf ( void *  arg,
int  idx,
VALUE_AREA va,
API_VALUE aval 
)
static

Definition at line 393 of file db_collection.c.

References assert, collection_s_::col, db_col_put(), ER_INTERFACE_GENERIC, NO_ERROR, and NULL.

Referenced by api_collection_set_to_db_value().

Here is the caller graph for this function:

Variable Documentation

API_COLLECTION_IFS COL_IFS_
static
Initial value:
= {
}
static int col_api_get_elem(API_COLLECTION *col, long pos, CI_TYPE type, void *addr, size_t len, size_t *outlen, bool *isnull)
static int col_api_insert(API_COLLECTION *col, long pos, CI_TYPE type, void *ptr, size_t size)
Definition: db_collection.c:77
static int col_api_delete(API_COLLECTION *col, long pos)
static void col_api_destroy(API_COLLECTION *col)
static int col_api_length(API_COLLECTION *col, int *len)
Definition: db_collection.c:57
static int col_api_get_elem_domain_info(API_COLLECTION *col, long pos, CI_TYPE *type, int *precision, int *scale)
static int col_api_update(API_COLLECTION *col, long pos, CI_TYPE type, void *ptr, size_t size)

Definition at line 263 of file db_collection.c.

Referenced by apif_collection_create().