php-cassandra-binary icon indicating copy to clipboard operation
php-cassandra-binary copied to clipboard

Notice: Reading while at end of stream in C:\xampp\htdocs\evseevnn-php-cassandra-binary\src\Protocol\Response\Rows.php on line 65

Open mahana123 opened this issue 9 years ago • 0 comments

This is my code namespace evseevnn; include_once(DIR.DIRECTORY_SEPARATOR."vendor".DIRECTORY_SEPARATOR."autoload.php");

$nodes = [
    '127.0.0.1',
    '127.0.0.1:9042' => [
        'username' => '',
        'password' => ''
    ]
];

// Connect to database.
$database = new Cassandra\Database($nodes, 'keyspace1');
$database->connect();

// Run query.
$users = $database->query('SELECT * FROM "test"');
var_dump($users);

test table structure

mahana123 avatar Jan 17 '16 17:01 mahana123