Raised when the query attempted to create a keyspace or a table that was
already existing.
- Examples:
-
- Creating a table twice
session.execute("USE my_keyspace")
session.execute("CREATE TABLE users (user_id INT PRIMARY KEY)")
begin
session.execute("CREATE TABLE users (user_id INT PRIMARY KEY)")
rescue Cassandra::Errors::AlreadyExistsError => e
p ['already exists', e.keyspace, e.table]
end
- See Also:
-
Inherits
Methods
Returns keyspace
-
Returns:
-
Type |
Details |
String |
keyspace
|
Returns table or nil
-
Returns:
-
Type |
Details |
(String or nil ) |
table or nil
|