Son birkaç gündür Cassandra kullanıyorum. Bunun için PHPCassa kütüphanesi kullanıyorum.Cassandra (CQL) deyimiyle 'nerede' çalışmıyor deyimi
Aşağıdaki kodu kullanmaya çalıştığımda, düzgün çalışmıyor. Hiçbir şey dönen
require_once('phpcassa/connection.php');
require_once "phpcassa/columnfamily.php";
// Create new ConnectionPool like you normally would
$pool = new ConnectionPool("newtest");
// Retrieve a raw connection from the ConnectionPool
$raw = $pool->get();
$rows = $raw->client->execute_cql_query("SELECT * FROM User WHERE KEY='phpqa'", cassandra_Compression::NONE);
echo "<pre>";
print_r($rows);
echo "<pre>";
// Return the connection to the pool so it may be used by other callers. Otherwise,
// the connection will be unavailable for use.
$pool->return_connection($raw);
unset($raw);
Onun, ben de aşağıdaki sorgular
$rows = $raw->client->execute_cql_query("SELECT * FROM User WHERE age='32'", cassandra_Compression::NONE);
$rows = $raw->client->execute_cql_query("SELECT * FROM User WHERE name='jack'", cassandra_Compression::NONE);
denedi Ama
$rows = $raw->client->execute_cql_query("SELECT * FROM User", cassandra_Compression::NONE);
doğru cevap verilmiş Its
çalıştı tüm satırları görüntülenen zaman. Lütfen bana 'WHERE' yi nasıl kullanacağımı bildiriniz.KEYSPACE Detayları
Strategy Class: org.apache.cassandra.locator.SimpleStrategy
Strategy Options: None
Replication Factor: 1
Ring
Start Token: 6064078270600954295
End Token: 6064078270600954295
Endpoints: 127.0.0.1
'DESCRIBE USER KEYSPACE' ürününün çıktısı nedir? – ethrbunny
'Yaş' ve 'isim' endeksli mi? – ethrbunny
Hayır, Dizine eklenmiş değil. –