Created PHP file for database-related functions
This commit is contained in:
9
db.inc.php
Normal file
9
db.inc.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
function init_cass_db() {
|
||||
$cluster = Cassandra::cluster()->withPersistentSessions(true)->build();
|
||||
$keyspace = 'glink';
|
||||
$session = $cluster->connect($keyspace);
|
||||
|
||||
return $session;
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user