lib/tablature/statements.rb
# Creates a partition of a parent by specifying the key values appearing in the partition.
#
# @param parent_table_name [String, Symbol] The name of the parent table.
# @param [Hash] options The options to create the partition.
#
# @see Tablature::Adapters::Postgres#create_range_partition_of
Creates a partition of a parent by specifying the key values appearing in the partition.
Creates a partition of a parent by specifying the key values appearing in the partition .
def create_range_partition_of(parent_table_name, options)
      if (options[:range_start].nil? || options[:range_end].nil?) && options[:default].blank?
        raise ArgumentError, 'range_start and range_end or default must be defined'
      end
      Tablature.database.create_range_partition_of(parent_table_name, options)
    end
def create_range_partition_of ( parent_table_name , options ) if ( options [ :range_start ] . nil? || options [ :range_end ] . nil? ) && options [ :default ] . blank? raise ArgumentError , 'range_start and range_end or default must be defined' end Tablature . database . create_range_partition_of ( parent_table_name , options ) end
Creates a partition of a parent by specifying the key values appearing in the partition.
Creates a partition of a parent by specifying the key values appearing in the partition .
parent_table_name
The name of the parent table.
The name of the parent table .
options
<not_specific>
<not_specific>
options The options to create the partition.
options The options to create the partition .
see
None