make_context

0th

Percentile

Test contexts

Create a test context, set and query the default context.

Usage
make_context(drv, connect_args, set_as_default = TRUE, tweaks = NULL,
  name = NULL)

set_default_context(ctx)

get_default_context()

Arguments
drv

[DBIDriver] An expression that constructs a DBI driver, like SQLite().

connect_args

[named list] Connection arguments (names and values).

set_as_default

[logical(1)] Should the created context be set as default context?

tweaks

[DBItest_tweaks] Tweaks as constructed by the tweaks() function.

name

[character] An optional name of the context which will be used in test messages.

ctx

[DBItest_context] A test context.

Value

[DBItest_context] A test context, for set_default_context the previous default context (invisibly) or NULL.

Aliases
  • make_context
  • set_default_context
  • get_default_context
Documentation reproduced from package DBItest, version 1.5-2, License: LGPL (>= 2)

Community examples

Looks like there are no examples yet.