Module: ParadeDB::MigrationDSL
- Defined in:
- lib/parade_db/migration_helpers.rb
Instance Method Summary collapse
- #add_bm25_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false, concurrently: false) ⇒ Object
- #create_paradedb_index(index_klass, if_not_exists: false, concurrently: false) ⇒ Object
- #reindex_bm25(table, name: nil, concurrently: false) ⇒ Object
- #remove_bm25_index(table, name: nil, if_exists: false) ⇒ Object
- #replace_paradedb_index(index_klass) ⇒ Object
Instance Method Details
#add_bm25_index(table, fields:, key_field:, name: nil, index_options: nil, where: nil, if_not_exists: false, concurrently: false) ⇒ Object
869 870 871 872 873 874 875 876 877 878 879 880 |
# File 'lib/parade_db/migration_helpers.rb', line 869 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: , where: where, if_not_exists: if_not_exists, concurrently: concurrently ) end |
#create_paradedb_index(index_klass, if_not_exists: false, concurrently: false) ⇒ Object
861 862 863 |
# File 'lib/parade_db/migration_helpers.rb', line 861 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
886 887 888 |
# File 'lib/parade_db/migration_helpers.rb', line 886 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
882 883 884 |
# File 'lib/parade_db/migration_helpers.rb', line 882 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
865 866 867 |
# File 'lib/parade_db/migration_helpers.rb', line 865 def replace_paradedb_index(index_klass) connection.replace_paradedb_index(index_klass) end |