Skip to content

Instantly share code, notes, and snippets.

@mpenick
Created February 6, 2017 18:09
Show Gist options
  • Select an option

  • Save mpenick/68b457c45634e2dd294fd0dfab7790dd to your computer and use it in GitHub Desktop.

Select an option

Save mpenick/68b457c45634e2dd294fd0dfab7790dd to your computer and use it in GitHub Desktop.
<?php
$cluster = Cassandra::cluster()->build();
$connectionFuture = $cluster->connectAsync();
$session = $connectionFuture->get();
$schema = $session->schema();
foreach ($schema->keyspaces() as $keyspace) {
foreach ($keyspace->tables() as $table) {
foreach ($table->columns() as $column)
{ $column->type(); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment