rpm  5.4.14
Files | Functions
RPMDBI DataBase Index Element API.
Collaboration diagram for RPMDBI DataBase Index Element API.:

Files

file  rpmlib.h
 In Memoriam: Steve Taylor stayl.nosp@m.or@r.nosp@m.edhat.nosp@m..com was here, now he's not.
 
file  rpmdb.c
 
file  rpmdb.h
 Access RPM indices using Berkeley DB interface(s).
 

Functions

static int sql_exists (dbiIndex dbi, DBT *key, unsigned int flags)
 Return whether key exists in a database. More...
 
static int sql_seqno (dbiIndex dbi, int64_t *seqnop, unsigned int flags)
 Return next sequence number. More...
 
static int sql_stat (dbiIndex dbi, unsigned int flags)
 Save statistics in database handle. More...
 

Detailed Description

Function Documentation

static int sql_exists ( dbiIndex  dbi,
DBT key,
unsigned int  flags 
)
static

Return whether key exists in a database.

Parameters
dbiindex database handle
keyretrieve key value/length/flags
flagsusually 0
Returns
0 if key exists, DB_NOTFOUND if not, else error

Definition at line 1256 of file sqlite.c.

References _KEYDATA, NULL, rc, and SQLDBDEBUG.

static int sql_seqno ( dbiIndex  dbi,
int64_t *  seqnop,
unsigned int  flags 
)
static

Return next sequence number.

Parameters
dbiindex database handle (with attached sequence)
Return values
*seqnopIN: delta (0 does seqno++) OUT: returned 64bit seqno
Parameters
flagsusually 0
Returns
0 on success

Definition at line 1297 of file sqlite.c.

References rc, sql_exec(), sql_seqno_cb(), and SQLDBDEBUG.

static int sql_stat ( dbiIndex  dbi,
unsigned int  flags 
)
static

Save statistics in database handle.

Parameters
dbiindex database handle
flagsretrieve statistics that don't require traversal?
Returns
0 on success

Definition at line 1761 of file sqlite.c.

References _free(), __db_h_stat::hash_nkeys, rc, sql_exec(), sql_stat_cb(), SQLDBDEBUG, and xcalloc().