Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 597 Bytes

table_list.md

File metadata and controls

29 lines (22 loc) · 597 Bytes
layout language permalink command related_commands
api-command
Java
api/java/table_list/
tableList
tableCreate tableDrop
table_create/
table_drop/

Command syntax

{% apibody %} db.tableList() → TableList {% endapibody %}

Description

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);
}