/// <summary> /// Returns metadata of all tables defined in this keyspace. /// </summary> /// /// <returns>an IEnumerable of TableMetadata for the tables defined in this /// keyspace.</returns> public IEnumerable <TableMetadata> GetTablesMetadata() { foreach (var tableName in _cc.GetTables(Name)) { yield return(_cc.GetTable(Name, tableName)); } }
/// <summary> /// Returns names of all tables which are defined within specified keyspace. /// </summary> /// <param name="keyspace">the name of the keyspace for which all tables metadata should be /// returned.</param> /// <returns>an ICollection of the metadata for the tables defined in this /// keyspace.</returns> public ICollection <string> GetTables(string keyspace) { return(_controlConnection.GetTables(keyspace)); }