class Tablature::PartitionedTable
The in-memory representation of a partitioned table definition.
**This object is used internally by adapters and the schema dumper and is not intended to be used by application code. It is documented here for use by adapter gems.**
@api extension
Attributes
name[R]
The name of the partitioned table @return [String]
partition_key[R]
The partition key expression. @return [String]
partitioning_method[R]
The partitioning method of the table @return [Symbol]
partitions[R]
The partitions of the table. @return [Array]
Public Class Methods
new(name:, partitioning_method:, partitions: [], partition_key:)
click to toggle source
Returns a new instance of PartitionTable.
@param name [String] The name of the view. @param partitioning_method
[:symbol] One of :range, :list or :hash @param partitions [Array] The partitions of the table. @param partition_key
[String] The partition key expression.
# File lib/tablature/partitioned_table.rb, line 32 def initialize(name:, partitioning_method:, partitions: [], partition_key:) @name = name @partitioning_method = partitioning_method @partitions = partitions @partition_key = partition_key end