Class: ActiveRecord::Refined::Dialect::Mariadb

Inherits:
MysqlCompat
  • Object
show all
Defined in:
lib/active_record/refined/dialect/mariadb.rb

Overview

MariaDB, which answers to the MySQL adapter but has no JSON type and no LATERAL.

Instance Method Summary collapse

Methods inherited from MysqlCompat

#bit_count, #bitwise_operators_supported?, #bitwise_xor, #check_string_aggregate_window, #excluded, #filter_supported?, #full_outer_join_supported?, #grouping_by_with_rollup?, #grouping_supported?, #json_aggregate_filter_supported?, #json_argument, #json_contains, #json_has_key, #json_keys, #json_list_by_element?, #json_path, #string_agg

Methods included from MysqlishJsonFunctions

#json_build, #json_remove, #json_set

Instance Method Details

#check_json_aggregate_window(source, _model) ⇒ Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/active_record/refined/dialect/mariadb.rb', line 19

def check_json_aggregate_window(source, _model)
  raise NotImplementedError, "#{source} over a window has no equivalent on MariaDB"
end

#check_lateral(_model) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/active_record/refined/dialect/mariadb.rb', line 9

def check_lateral(_model)
  raise NotImplementedError, "a lateral join has no equivalent on MariaDB"
end

#json_literal(_json, _model) ⇒ Object

MariaDB has no JSON type, so a JSON comparison is refused.

Raises:

  • (NotImplementedError)


14
15
16
17
# File 'lib/active_record/refined/dialect/mariadb.rb', line 14

def json_literal(_json, _model)
  raise NotImplementedError,
    "a JSON comparison has no equivalent on MariaDB; dig_text gives the value"
end