Cassandra\SchemaMetadataIntegrationTest::createUserDefinedFunction PHP Method

createUserDefinedFunction() protected method

Create the user defined function
    protected function createUserDefinedFunction()
    {
        $statement = new SimpleStatement("CREATE OR REPLACE FUNCTION user_defined_function(rhs int, lhs int) " . "RETURNS NULL ON NULL INPUT " . "RETURNS int LANGUAGE javascript AS 'lhs + rhs'");
        $this->session->execute($statement);
        $cluster = \Cassandra::cluster()->withContactPoints("127.0.0.1")->withPersistentSessions(false)->build();
        $session = $cluster->connect();
    }