%% Return Database Table Names in Cassandra Database Keyspace
% Using a Cassandra® database connection, return the names of all database tables in a specific keyspace of the Cassandra database—in this case, the employeedata keyspace.
%
% Create a Cassandra database connection using the local host address. conn is a cassandra object.

contactPoints = "localhost";
conn = cassandra(contactPoints);

%
% Return and display all database tables in the employeedata keyspace of the Cassandra database by using the Cassandra database connection. t is a string array that contains the names of all database tables in the employeedata keyspace.

keyspace = "employeedata";
t = tablenames(conn,keyspace)

%
% Close the Cassandra database connection.

close(conn)

% Copyright 2018 The MathWorks, Inc.