adbc_statement_set_sql_query {adbcdrivermanager}R Documentation

Statement methods

Description

Statement methods

Usage

adbc_statement_set_sql_query(statement, query)

adbc_statement_set_substrait_plan(statement, plan)

adbc_statement_prepare(statement)

adbc_statement_get_parameter_schema(statement)

adbc_statement_bind(statement, values, schema = NULL)

adbc_statement_bind_stream(statement, stream, schema = NULL)

adbc_statement_execute_query(
  statement,
  stream = NULL,
  stream_join_parent = FALSE
)

adbc_statement_execute_schema(statement)

adbc_statement_cancel(statement)

Arguments

statement

An adbc_statement

query

An SQL query as a string

plan

A raw vector representation of a serialized Substrait plan.

values

A nanoarrow_array or object that can be coerced to one.

schema

A nanoarrow_schema or object that can be coerced to one.

stream

A nanoarrow_array_stream or object that can be coerced to one.

stream_join_parent

Use TRUE to invalidate statement and tie its lifecycle to stream.

Value

Examples

db <- adbc_database_init(adbc_driver_void())
con <- adbc_connection_init(db)
stmt <- adbc_statement_init(con)
# (not implemented by the void driver)
try(adbc_statement_set_sql_query(stmt, "some query"))


[Package adbcdrivermanager version 0.11.0 Index]