Module: Babik::Selection::Operation::ValidDBMS
- Included in:
- DateOperation
- Defined in:
- lib/babik/queryset/lib/selection/operation/date.rb
Overview
Check the DBMS is one of the supported ones
Constant Summary collapse
- SUPPORTED_DB_ADAPTERS =
%i[mariadb mysql2 postgresql sqlite3].freeze
Instance Method Summary collapse
Instance Method Details
#assert_dbms ⇒ Object
13 14 15 16 |
# File 'lib/babik/queryset/lib/selection/operation/date.rb', line 13 def assert_dbms dbms = db_engine.to_sym raise "Invalid dbms #{db_engine}. Only mysql, postgresql, and sqlite3 are accepted" unless SUPPORTED_DB_ADAPTERS.include?(dbms) end |