List containers in database
Arguments
- src
Source object, result of call to any of functions
src_mongo()
,src_sqlite()
,src_elastic()
,src_couchdb()
orsrc_postgres()
- ...
Passed to functions:
MongoDB: ignored
SQLite:
DBI::dbListTables()
Elasticsearch:
elastic::aliases_get()
CouchDB:
sofa::db_info()
PostgreSQL:
DBI::dbListTables()
DuckDB:
DBI::dbListTables()
Value
(vector) of names of containers that can be
used as parameter key
with other functions such as
docdb_create()
.
Parameter key
corresponds to collection
for MongoDB,
dbname
for CouchDB, index
for Elasticsearch and
a table name for SQLite and PostgreSQL
Examples
if (FALSE) {
src <- src_sqlite()
docdb_create(src, "iris", iris)
docdb_list(src)
}