PHP Class Cassandra\DatatypeIntegrationTests

Inheritance: extends BasicIntegrationTest
Show file Open project: datastax/php-driver

Public Methods

Method Description
createTable ( $type ) : string Create a table named for the CQL $type parameter
createTableInsertAndVerifyValueByIndex ( $type, $value ) Create a table using $type for the value's type and insert $value using positional parameters.
createTableInsertAndVerifyValueByName ( $type, $value ) Create a table using $type for the value's type and insert $value using named parameters.
createUserType ( $userType ) Create a user type in the current keyspace
scalarCassandraTypes ( ) Scalar Cassandra types to be used by data providers
typeString ( $type ) : string Generate a type string suitable for creating a new table or user type using CQL
userTypeString ( $userType ) : string Generate a user type name string suitable for creating a new table or user type using CQL

Protected Methods

Method Description
createTableInsertAndVerifyValue ( $type, $options, $key, $value ) Create a new table with specified type and insert and verify value
insertValue ( $tableName, $options ) Insert a value into table
verifyValue ( $tableName, $type, $key, $value ) Verify value

Method Details

createTable() public method

Create a table named for the CQL $type parameter
public createTable ( $type ) : string
$type Cassandra\Type
return string Table name generated from $type

createTableInsertAndVerifyValue() protected method

Create a new table with specified type and insert and verify value
protected createTableInsertAndVerifyValue ( $type, $options, $key, $value )
$type Cassandra\Type
$options Cassandra\ExecutionOptions
$key string
$value mixed

createTableInsertAndVerifyValueByIndex() public method

Create a table using $type for the value's type and insert $value using positional parameters.
public createTableInsertAndVerifyValueByIndex ( $type, $value )
$type Cassandra\Type
$value mixed

createTableInsertAndVerifyValueByName() public method

Create a table using $type for the value's type and insert $value using named parameters.
public createTableInsertAndVerifyValueByName ( $type, $value )
$type Cassandra\Type
$value mixed

createUserType() public method

Create a user type in the current keyspace
public createUserType ( $userType )
$userType Cassandra\Type\UserType

insertValue() protected method

Insert a value into table
protected insertValue ( $tableName, $options )
$tableName string
$options Cassandra\ExecutionOptions

scalarCassandraTypes() public method

Scalar Cassandra types to be used by data providers

typeString() public static method

Generate a type string suitable for creating a new table or user type using CQL
public static typeString ( $type ) : string
$type Cassandra\Type
return string String representation of type

userTypeString() public static method

Generate a user type name string suitable for creating a new table or user type using CQL
public static userTypeString ( $userType ) : string
$userType Cassandra\Type
return string String representation of the UserType

verifyValue() protected method

Verify value
protected verifyValue ( $tableName, $type, $key, $value )
$tableName string
$type Cassandra\Type
$key string
$value mixed