Asterisk - The Open Source Telephony Project
18.5.0
|
SQLite 3 astdb to Berkeley DB converter. More...
#include "asterisk.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sqlite3.h>
#include <libgen.h>
#include "db1-ast/include/db.h"
Go to the source code of this file.
Functions | |
static int | add_row_to_bdb (void *arg, int columns, char **values, char **column_names) |
static int | convert_bdb_to_sqlite3 (void) |
static int | create_bdb_astdb (void) |
static int | db_open_sqlite3 (const char *dbname) |
int | main (int argc, char *argv[]) |
Variables | |
static DB * | bdb |
static sqlite3 * | sql3db |
SQLite 3 astdb to Berkeley DB converter.
Definition in file astdb2bdb.c.
|
static |
Definition at line 44 of file astdb2bdb.c.
References DBT::data, ast_db_entry::key, DBT::size, and value.
Referenced by convert_bdb_to_sqlite3().
|
static |
Definition at line 67 of file astdb2bdb.c.
References add_row_to_bdb(), NULL, and sql3db.
Referenced by main().
|
static |
Definition at line 89 of file astdb2bdb.c.
References AST_FILE_MODE, DB_BTREE, dbopen(), errno, and NULL.
Referenced by main().
|
static |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 98 of file astdb2bdb.c.
References convert_bdb_to_sqlite3(), create_bdb_astdb(), db_open_sqlite3(), errno, and sql3db.
|
static |
Definition at line 42 of file astdb2bdb.c.
Referenced by convert_bdb_to_sqlite3().
|
static |
Definition at line 41 of file astdb2bdb.c.
Referenced by convert_bdb_to_sqlite3(), db_open_sqlite3(), and main().