Module: DatabaseType

Defined in:
lib/quill-sql.rb

Constant Summary collapse

POSTGRESQL =
'postgresql'.freeze
SNOWFLAKE =
'snowflake'.freeze
BIGQUERY =
'bigquery'.freeze
MYSQL =
'mysql'.freeze
CLICKHOUSE =
'clickhouse'.freeze

Class Method Summary collapse

Class Method Details

.valid?(type) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/quill-sql.rb', line 22

def self.valid?(type)
  constants.map { |c| const_get(c) }.include?(type)
end