tweaks | R Documentation |
The tweaks are a way to control the behavior of certain tests. Currently,
you need to search the DBItest source code to understand which tests
are affected by which tweaks. This function is usually called to set the
tweaks
argument in a make_context()
call.
tweaks(
...,
constructor_name = NULL,
constructor_relax_args = FALSE,
strict_identifier = FALSE,
omit_blob_tests = FALSE,
current_needs_parens = FALSE,
union = function(x) paste(x, collapse = " UNION "),
placeholder_pattern = NULL,
logical_return = identity,
date_cast = function(x) paste0("date('", x, "')"),
time_cast = function(x) paste0("time('", x, "')"),
timestamp_cast = function(x) paste0("timestamp('", x, "')"),
blob_cast = identity,
date_typed = TRUE,
time_typed = TRUE,
timestamp_typed = TRUE,
temporary_tables = TRUE,
list_temporary_tables = TRUE,
allow_na_rows_affected = FALSE,
is_null_check = function(x) paste0("(", x, " IS NULL)"),
create_table_as = function(table_name, query) paste0("CREATE TABLE ", table_name,
" AS ", query),
dbitest_version = "1.7.1"
)
... |
|
constructor_name |
|
constructor_relax_args |
|
strict_identifier |
|
omit_blob_tests |
|
current_needs_parens |
|
union |
|
placeholder_pattern |
|
logical_return |
|
date_cast |
|
time_cast |
|
timestamp_cast |
|
blob_cast |
|
date_typed |
|
time_typed |
|
timestamp_typed |
|
temporary_tables |
|
list_temporary_tables |
|
allow_na_rows_affected |
|
is_null_check |
|
create_table_as |
|
dbitest_version |
|
## Not run:
make_context(..., tweaks = tweaks(strict_identifier = TRUE))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.