Added modb_use to R and the c handler + moved the connection referencing to a helpers file

This commit is contained in:
2020-10-05 17:30:27 +01:00
parent cbbda5378f
commit ca594a2c0b
5 changed files with 83 additions and 36 deletions

View File

@@ -3,18 +3,24 @@
#include <Rinternals.h>
// Connections
SEXP modb_connectionInfo(SEXP r_conn_ref);
SEXP modb_connectToHost(SEXP r_name, SEXP r_host, SEXP r_port,
SEXP r_username, SEXP r_password, SEXP r_database);
SEXP modb_connectToSocket(SEXP r_name, SEXP r_socket,
SEXP r_username, SEXP r_password, SEXP r_database);
SEXP modb_disconnect(SEXP r_conn_ref);
// MODB instances
SEXP modb_exists(SEXP r_conn_ref, SEXP r_name);
SEXP modb_create(SEXP r_conn_ref, SEXP r_name, SEXP r_extra_meta);
SEXP modb_destroy(SEXP r_conn_ref, SEXP r_name);
// Link connection to MODB instance
SEXP modb_use(SEXP r_conn_ref, SEXP r_name, SEXP r_override);
#endif // H__R_MODB_MANAGE__