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_list_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_list_partition_of(parent_table_name, options)
      if options[:values].blank? && options[:default].blank?
        raise ArgumentError, 'values or default must be defined'
      end
      Tablature.database.create_list_partition_of(parent_table_name, options)
    end
def create_list_partition_of ( parent_table_name , options ) if options [ :values ] . blank? && options [ :default ] . blank? raise ArgumentError , 'values or default must be defined' end Tablature . database . create_list_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