Skip to contents

Convert a name or DBI::Id to SQL

Usage

cdr_id2sql(db_tbl_name, ...)

Arguments

db_tbl_name

db name as text or cdr_id() object

...

other DB params like schema

Value

SQL table object

Examples

crudr:::cdr_id2sql('hello')
#> <SQL> "hello"
crudr:::cdr_id2sql(cdr_id(table = 'hello', schema = 'blue'))
#> <SQL> "blue"."hello"
crudr:::cdr_id(table = 'hello', schema = 'blue')
#> <Id> schema = blue, table = hello
crudr:::cdr_id2sql(cdr_id(schema = 'blue', table = 'hello'))
#> <SQL> "blue"."hello"
crudr:::cdr_id(schema = 'blue', table = 'hello')
#> <Id> schema = blue, table = hello