Created PHP file for database-related functions

This commit is contained in:
2023-06-25 14:08:03 -05:00
parent 3914190175
commit b5283110d2

9
db.inc.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
function init_cass_db() {
$cluster = Cassandra::cluster()->withPersistentSessions(true)->build();
$keyspace = 'glink';
$session = $cluster->connect($keyspace);
return $session;
}
?>