Packages
xandra
0.3.2
0.19.4
0.19.3
0.19.2
0.19.1
0.19.0
0.18.1
0.18.0
0.18.0-rc.9
0.18.0-rc.8
0.18.0-rc.7
0.18.0-rc.6
0.18.0-rc.5
0.18.0-rc.4
0.18.0-rc.3
0.18.0-rc.2
0.18.0-rc.1
0.17.0
0.16.0
0.15.0
0.15.0-rc.1
0.14.0
0.13.1
0.13.0
0.12.0
0.11.0
0.10.1
0.10.0
0.9.2
0.9.1
0.9.0
0.8.0
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.1
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0
Fast, simple, and robust Cassandra driver for Elixir.
Current section
Files
Jump to
Current section
Files
lib/xandra/schema_change.ex
defmodule Xandra.SchemaChange do
@moduledoc """
A struct that represents the result of a query that modifies the schema.
This struct has the following fields:
* `:effect` - the type of change involved. It's one of `"CREATED"`,
`"UPDATED"`, or `"DROPPED"`.
* `:target` - what has been modified. It's one of `"KEYSPACE"`, `"TABLE"`,
or `"TYPE"`.
* `:options` - a map of options that depends on the value of `:target`:
* if target is `"KEYSPACE"`, the map will have the form
`%{keyspace: keyspace}`
* if the target is `"TABLE"` or `"TYPE"`, the map will have the form
`%{keyspace: keyspace, subject: subject}` where `keyspace` is the
keyspace where the change happened and `subject` is the name of what
changed (so the name of the changed table or type)
"""
defstruct [:effect, :target, :options]
@type t :: %__MODULE__{
effect: String.t,
target: String.t,
options: map,
}
end