Learn R Programming

motherduck (version 0.2.0)

convert_table_to_sql_id: Convert Table Metadata to SQL Identifiers

Description

Converts a tibble of table metadata (table_catalog, table_schema, table_name) into a list of DBI::Id SQL identifiers. Useful for safely quoting fully qualified table references in DBI/dbplyr workflows.

Usage

convert_table_to_sql_id(x)

Value

A list of DBI::Id objects, each representing a fully-qualified table.

Arguments

x

A tibble or data frame containing the columns:

  • table_catalog — database/catalog name

  • table_schema — schema name

  • table_name — table name