From be9edb904c71ec9caa3856d0e70864ec44ba64fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Mon, 23 Oct 2023 21:30:41 +0200 Subject: [PATCH] Update docs for client flags --- R/connect.R | 6 +++--- man/Client-flags.Rd | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/connect.R b/R/connect.R index 0791e71b..09a706ac 100644 --- a/R/connect.R +++ b/R/connect.R @@ -55,8 +55,8 @@ MariaDB <- function() { #' Client flags #' #' Use for the `client.flag` argument to [dbConnect()], multiple flags can be -#' combined with a bitwise or (see [Logic]). The flags are provided for -#' completeness. +#' combined with `+` or [bitwOr()]. +#' The flags are provided for completeness. #' #' @seealso #' The `flags` argument at https://mariadb.com/kb/en/library/mysql_real_connect. @@ -68,7 +68,7 @@ MariaDB <- function() { #' con1 <- dbConnect(MariaDB(), client.flag = CLIENT_COMPRESS) #' con2 <- dbConnect( #' MariaDB(), -#' client.flag = CLIENT_COMPRESS | CLIENT_SECURE_CONNECTION +#' client.flag = bitwOr(CLIENT_COMPRESS, CLIENT_SECURE_CONNECTION) #' ) #' } #' diff --git a/man/Client-flags.Rd b/man/Client-flags.Rd index cbac865a..0e1ccd78 100644 --- a/man/Client-flags.Rd +++ b/man/Client-flags.Rd @@ -23,8 +23,8 @@ \title{Client flags} \description{ Use for the \code{client.flag} argument to \code{\link[=dbConnect]{dbConnect()}}, multiple flags can be -combined with a bitwise or (see \link{Logic}). The flags are provided for -completeness. +combined with \code{+} or \code{\link[=bitwOr]{bitwOr()}}. +The flags are provided for completeness. } \examples{ \dontrun{ @@ -33,7 +33,7 @@ library(RMariaDB) con1 <- dbConnect(MariaDB(), client.flag = CLIENT_COMPRESS) con2 <- dbConnect( MariaDB(), - client.flag = CLIENT_COMPRESS | CLIENT_SECURE_CONNECTION + client.flag = bitwOr(CLIENT_COMPRESS, CLIENT_SECURE_CONNECTION) ) }