Created PHP file for database-related functions
parent
3914190175
commit
b5283110d2
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
function init_cass_db() {
|
||||||
|
$cluster = Cassandra::cluster()->withPersistentSessions(true)->build();
|
||||||
|
$keyspace = 'glink';
|
||||||
|
$session = $cluster->connect($keyspace);
|
||||||
|
|
||||||
|
return $session;
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Reference in New Issue