#include "system.h"
#include <fts.h>
#include <mire.h>
#include <rpmdir.h>
#include <rpmmacro.h>
#include <rpmurl.h>
#include <rpmsql.h>
#include <sqlite3.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#include <rpmts.h>
#include <rpmgi.h>
#include "debug.h"
Go to the source code of this file.
|
static const char * | hasSqlType (const char *s) |
|
static char * | tagJoin (const char *a, const char **argv, const char *z) |
|
static char * | tagAppendCols (rpmvt vt, const char **av) |
|
static int | tagLoadArgv (rpmvt vt, rpmvt *vtp) |
|
static int | tagCreate (void *_db, void *pAux, int argc, const char *const *argv, rpmvt *vtp, char **pzErr) |
|
static char * | _rpmvtJoin (const char *a, const char **argv, const char *z) |
|
static char * | _rpmvtAppendCols (rpmvt vt, const char **av) |
|
static int | _rpmvtLoadArgv (rpmvt vt, rpmvt *vtp) |
|
static int | hdrColumn (rpmvc vc, void *_pContext, int colx) |
|
static int | hdrLoadNext (rpmvc vc) |
|
static int | hdrFilter (rpmvc vc, int idxNum, const char *idxStr, int argc, rpmvArg *_argv) |
|
static int | hdrNext (rpmvc vc) |
|
static int | hdrEof (rpmvc vc) |
|
static int | hdrCreate (void *_db, void *pAux, int argc, const char *const *argv, rpmvt *vtp, char **pzErr) |
|
static int | hdrDestroy (rpmvt vt) |
|
int | sqlite3_extension_init (void *_db) |
|
static char* _rpmvtAppendCols |
( |
rpmvt |
vt, |
|
|
const char ** |
av |
|
) |
| |
|
static |
static char* _rpmvtJoin |
( |
const char * |
a, |
|
|
const char ** |
argv, |
|
|
const char * |
z |
|
) |
| |
|
static |
static int _rpmvtLoadArgv |
( |
rpmvt |
vt, |
|
|
rpmvt * |
vtp |
|
) |
| |
|
static |
static const char* hasSqlType |
( |
const char * |
s | ) |
|
|
static |
static int hdrColumn |
( |
rpmvc |
vc, |
|
|
void * |
_pContext, |
|
|
int |
colx |
|
) |
| |
|
static |
Definition at line 474 of file libsql.c.
References _free(), alloca(), rpmDataType_u::argv, _HE_s::c, headerGet(), _HE_s::p, rpmDataType_u::ptr, RPM_BIN_TYPE, RPM_I18NSTRING_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, RPM_UINT16_TYPE, RPM_UINT32_TYPE, RPM_UINT64_TYPE, RPM_UINT8_TYPE, rpmDataType_u::str, _HE_s::t, _HE_s::tag, tagValue(), rpmDataType_u::ui16p, rpmDataType_u::ui32p, rpmDataType_u::ui64p, and rpmDataType_u::ui8p.
static int hdrCreate |
( |
void * |
_db, |
|
|
void * |
pAux, |
|
|
int |
argc, |
|
|
const char *const * |
argv, |
|
|
rpmvt * |
vtp, |
|
|
char ** |
pzErr |
|
) |
| |
|
static |
static int hdrDestroy |
( |
rpmvt |
vt | ) |
|
|
static |
static int hdrEof |
( |
rpmvc |
vc | ) |
|
|
static |
static int hdrFilter |
( |
rpmvc |
vc, |
|
|
int |
idxNum, |
|
|
const char * |
idxStr, |
|
|
int |
argc, |
|
|
rpmvArg * |
_argv |
|
) |
| |
|
static |
static int hdrLoadNext |
( |
rpmvc |
vc | ) |
|
|
static |
static int hdrNext |
( |
rpmvc |
vc | ) |
|
|
static |
int sqlite3_extension_init |
( |
void * |
_db | ) |
|
static char* tagAppendCols |
( |
rpmvt |
vt, |
|
|
const char ** |
av |
|
) |
| |
|
static |
static int tagCreate |
( |
void * |
_db, |
|
|
void * |
pAux, |
|
|
int |
argc, |
|
|
const char *const * |
argv, |
|
|
rpmvt * |
vtp, |
|
|
char ** |
pzErr |
|
) |
| |
|
static |
static char* tagJoin |
( |
const char * |
a, |
|
|
const char ** |
argv, |
|
|
const char * |
z |
|
) |
| |
|
static |
Definition at line 167 of file libsql.c.
References _free(), _rpmHeaderFormats, _rpmTagTable, argvAdd(), argvCount(), argvPrint(), db, headerCompoundFormats, key_s::k, name, RPM_MASK_TYPE, RPM_MAX_TYPE, RPM_MIN_TYPE, rpmExpand(), rpmsqlCmd(), rpmTagTable, snprintf(), tagAppendCols(), and tagValue().
Referenced by tagCreate().
struct rpmsqlVMT_s __VMT[] |
|
static |
Initial value:= {
{ NULL, NULL, NULL }
}
struct sqlite3_module hdrModule
struct sqlite3_module tagModule
Definition at line 666 of file libsql.c.
Initial value:= {
.prefix = "%{?_repodb}%{!?_repodb:/X/popt/}",
.split = "/|",
.parse = "Name|Epoch integer|Version|Release|Arch|Os|Providename|Provideversion|Provideflags|Sigmd5 blob|Nvra|Summary",
}
Definition at line 614 of file libsql.c.
Initial value:= {
.split = "|",
.parse = "tag integer primary key|attrs integer|type|name",
}
Definition at line 259 of file libsql.c.
struct sqlite3_module hdrModule |
Initial value:= {
.iVersion = 0,
}
static int hdrFilter(rpmvc vc, int idxNum, const char *idxStr, int argc, rpmvArg *_argv)
static int hdrNext(rpmvc vc)
static int hdrCreate(void *_db, void *pAux, int argc, const char *const *argv, rpmvt *vtp, char **pzErr)
static int hdrEof(rpmvc vc)
static int hdrDestroy(rpmvt vt)
static int hdrColumn(rpmvc vc, void *_pContext, int colx)
Definition at line 652 of file libsql.c.
Initial value:= {
{ "blob", SQLITE_BLOB },
{ "float", SQLITE_FLOAT },
{ "int", SQLITE_INTEGER },
{ "integer",SQLITE_INTEGER },
{ "null", SQLITE_NULL },
{ "text", SQLITE_TEXT },
}
Definition at line 33 of file libsql.c.
struct sqlite3_module tagModule |
Initial value:= {
.iVersion = 0,
}
static int tagCreate(void *_db, void *pAux, int argc, const char *const *argv, rpmvt *vtp, char **pzErr)
Definition at line 271 of file libsql.c.
Initial value:
Definition at line 76 of file libsql.c.