Module: ParadeDB::MigrationDSL

Defined in:
lib/parade_db/migration_helpers.rb

Instance Method Summary collapse

Instance Method Details

#add_bm25_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false, concurrently: false) ⇒ Object



862
863
864
865
866
867
868
869
870
871
872
873
# File 'lib/parade_db/migration_helpers.rb', line 862

def add_bm25_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false, concurrently: false)
  connection.add_bm25_index(
    table,
    fields: fields,
    key_field: key_field,
    name: name,
    index_options: index_options,
    where: where,
    if_not_exists: if_not_exists,
    concurrently: concurrently
  )
end

#create_paradedb_index(index_klass, if_not_exists: false, concurrently: false) ⇒ Object



854
855
856
# File 'lib/parade_db/migration_helpers.rb', line 854

def create_paradedb_index(index_klass, if_not_exists: false, concurrently: false)
  connection.create_paradedb_index(index_klass, if_not_exists: if_not_exists, concurrently: concurrently)
end

#reindex_bm25(table, name: nil, concurrently: false) ⇒ Object



879
880
881
# File 'lib/parade_db/migration_helpers.rb', line 879

def reindex_bm25(table, name: nil, concurrently: false)
  connection.reindex_bm25(table, name: name, concurrently: concurrently)
end

#remove_bm25_index(table, name: nil, if_exists: false) ⇒ Object



875
876
877
# File 'lib/parade_db/migration_helpers.rb', line 875

def remove_bm25_index(table, name: nil, if_exists: false)
  connection.remove_bm25_index(table, name: name, if_exists: if_exists)
end

#replace_paradedb_index(index_klass) ⇒ Object



858
859
860
# File 'lib/parade_db/migration_helpers.rb', line 858

def replace_paradedb_index(index_klass)
  connection.replace_paradedb_index(index_klass)
end