Class: Dymos::Query::CreateTable
- Inherits:
-
Base
- Object
- Base
- Dymos::Query::CreateTable
show all
- Defined in:
- lib/dymos/query/create_table.rb
Instance Method Summary
collapse
Methods inherited from Base
#build, #initialize, #name
Instance Method Details
#attributes(value) ⇒ Object
8
9
10
11
|
# File 'lib/dymos/query/create_table.rb', line 8
def attributes(value)
@query[:attribute_definitions] = _attributes(value)
self
end
|
#command ⇒ Object
4
5
6
|
# File 'lib/dymos/query/create_table.rb', line 4
def command
'create_table'
end
|
#gsi(value) ⇒ Object
42
43
44
45
46
47
48
49
|
# File 'lib/dymos/query/create_table.rb', line 42
def gsi(value)
@query[:global_secondary_indexes] = value.map { |i|
index = _index(i)
index[:provisioned_throughput] = _throughput(i[:throughput])
index
}
self
end
|
#keys(value) ⇒ Object
19
20
21
22
|
# File 'lib/dymos/query/create_table.rb', line 19
def keys(value)
@query[:key_schema]=_keys(value)
self
end
|
#lsi(value) ⇒ Object
51
52
53
54
55
56
|
# File 'lib/dymos/query/create_table.rb', line 51
def lsi(value)
@query[:local_secondary_indexes] = value.map do |i|
_index(i)
end
self
end
|
#throughput(value) ⇒ Object
30
31
32
33
|
# File 'lib/dymos/query/create_table.rb', line 30
def throughput(value)
@query[:provisioned_throughput] = _throughput(value)
self
end
|