Defines functions dbBind_MariaDBResult

Documented in dbBind_MariaDBResult

#' @name query
#' @usage NULL
dbBind_MariaDBResult <- function(res, params, ...) {
  if (!is.null(names(params))) {
    stopc("Cannot use named parameters for anonymous placeholders")

  params <- sql_data(as.list(params), res@conn, warn = TRUE)

  result_bind(res@ptr, params)

#' @rdname query
#' @export
setMethod("dbBind", "MariaDBResult", dbBind_MariaDBResult)

Try the RMariaDB package in your browser

Any scripts or data that you put into this service are public.

RMariaDB documentation built on Dec. 20, 2021, 9:06 a.m.