Skip to contents

Registers an sf object, sedonadb_dataframe, or dbplyr query as a named view in SedonaDB. This operation is lazy; it does not move data until a query is executed.

Usage

sx_as_view(x, name = NULL, overwrite = TRUE, verbosity = NULL)

Arguments

x

A sedonadb_dataframe, sf object, or view name (character) in SedonaDB to register..

name

Character. The name to register the view as. If NULL (default), a unique name is generated.

overwrite

Logical. If TRUE, overwrites any existing view with the same name. Default is FALSE.

verbosity

Character or NULL. Controls message output for this function call.

  • "quiet": Suppress all informational messages.

  • "info": Show standard progress and status messages.

  • "debug": Show additional diagnostic messages for troubleshooting.

If NULL (the default), uses the global sx.verbosity option. See sx_options() for persistent configuration.

Value

A sedonadb_dataframe pointing to the registered view (invisibly).

See also

sx_create_table() to materialize data into memory.