layout | language | permalink | command | related_commands | ||||
---|---|---|---|---|---|---|---|---|
api-command |
Java |
api/java/table_list/ |
tableList |
|
{% apibody %} db.tableList() → TableList {% endapibody %}
List all table names in a database. The result is a list of strings.
Example: List all tables of the 'test' (DEFAULT_DB_NAME
) database.
List<?> tableList = r.db(DEFAULT_DB_NAME).tableList().run(connection, ArrayList.class).single();
if (tableList != null) {
tableList.forEach(System.out::println);
}