| caged_connect | R Documentation |
Cria o arquivo .duckdb se ainda não existir. A conexão retornada é
compatível com dplyr::tbl(), DBI::dbGetQuery() e dbplyr.
caged_connect(db_path, read_only = FALSE, quiet = FALSE)
db_path |
character. Path to the file |
read_only |
logical. If TRUE, abre somente leitura. Default: FALSE. |
quiet |
logical. If TRUE, suppresses the connection message. Default: FALSE. |
Lembre-se de fechar a conexão com DBI::dbDisconnect() ao terminar.
objeto de conexão DBI (duckdb_connection).
caged_info() para listar tabelas no banco.
con <- caged_connect(file.path(tempdir(), "caged.duckdb"))
# Listar tabelas disponíveis
DBI::dbListTables(con)
# Sempre fechar ao terminar
DBI::dbDisconnect(con, shutdown = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.