| 3435 |
mrmanese |
1 |
#include "sqlite_dataframe.h"
|
| 4160 |
mrmanese |
2 |
#include "exports.h"
|
| 3435 |
mrmanese |
3 |
#include <R_ext/Rdynload.h>
|
|
|
4 |
|
|
|
5 |
static const R_CallMethodDef CallEntries[] = {
|
|
|
6 |
/* sqlite_workspace.c */
|
|
|
7 |
{"sdf_init_workspace", (DL_FUNC) &sdf_init_workspace, 0},
|
|
|
8 |
{"sdf_finalize_workspace", (DL_FUNC) &sdf_finalize_workspace, 0},
|
|
|
9 |
{"sdf_list_sdfs", (DL_FUNC) &sdf_list_sdfs, 1},
|
|
|
10 |
{"sdf_get_sdf", (DL_FUNC) &sdf_get_sdf, 1},
|
|
|
11 |
{"sdf_attach_sdf", (DL_FUNC) &sdf_attach_sdf, 2},
|
|
|
12 |
{"sdf_detach_sdf", (DL_FUNC) &sdf_detach_sdf, 1},
|
|
|
13 |
{"sdf_rename_sdf", (DL_FUNC) &sdf_rename_sdf, 2},
|
|
|
14 |
|
|
|
15 |
/* sqlite_dataframe.c */
|
|
|
16 |
{"sdf_create_sdf", (DL_FUNC) &sdf_create_sdf, 2},
|
|
|
17 |
{"sdf_get_names", (DL_FUNC) &sdf_get_names, 1},
|
|
|
18 |
{"sdf_get_length", (DL_FUNC) &sdf_get_length, 1},
|
|
|
19 |
{"sdf_get_row_count", (DL_FUNC) &sdf_get_row_count, 1},
|
|
|
20 |
{"sdf_import_table", (DL_FUNC) &sdf_import_table, 6},
|
| 3471 |
mrmanese |
21 |
{"sdf_get_index", (DL_FUNC) &sdf_get_index, 4},
|
| 3435 |
mrmanese |
22 |
{"sdf_rbind", (DL_FUNC) &sdf_rbind, 2},
|
|
|
23 |
{"sdf_get_iname", (DL_FUNC) &sdf_get_iname, 1},
|
|
|
24 |
|
|
|
25 |
/* sqlite_vector.c */
|
|
|
26 |
{"sdf_get_variable", (DL_FUNC) &sdf_get_variable, 2},
|
|
|
27 |
{"sdf_get_variable_length", (DL_FUNC) &sdf_get_variable_length, 1},
|
|
|
28 |
{"sdf_get_variable_index", (DL_FUNC) &sdf_get_variable_index, 2},
|
|
|
29 |
/* sdf_set_variable_index */
|
|
|
30 |
{"sdf_variable_summary", (DL_FUNC) &sdf_variable_summary, 2},
|
|
|
31 |
{"sdf_do_variable_math", (DL_FUNC) &sdf_do_variable_math, 3},
|
|
|
32 |
{"sdf_do_variable_op", (DL_FUNC) &sdf_do_variable_op, 4},
|
|
|
33 |
{"sdf_do_variable_summary", (DL_FUNC) &sdf_do_variable_summary, 3},
|
|
|
34 |
{"sdf_sort_variable", (DL_FUNC) &sdf_sort_variable, 2},
|
|
|
35 |
|
|
|
36 |
/* sqlite_external.c */
|
|
|
37 |
{"sdf_import_sqlite_table", (DL_FUNC) &sdf_import_sqlite_table, 3},
|
|
|
38 |
|
|
|
39 |
/* sqlite_matrix.c */
|
|
|
40 |
{"sdf_as_matrix", (DL_FUNC) &sdf_as_matrix, 2},
|
| 3808 |
mrmanese |
41 |
{"sdf_create_smat", (DL_FUNC) &sdf_create_smat, 2},
|
| 3821 |
mrmanese |
42 |
|
|
|
43 |
/* sqlite_biglm.c */
|
|
|
44 |
{"sdf_do_biglm", (DL_FUNC) &sdf_do_biglm, 4},
|
| 3435 |
mrmanese |
45 |
{NULL, NULL, 0}
|
|
|
46 |
};
|
|
|
47 |
|
|
|
48 |
void R_init_SQLiteDF(DllInfo *dll) {
|
|
|
49 |
/* Rprintf("I am executed.\n"); */
|
|
|
50 |
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
|
|
|
51 |
}
|