Module: Neighbor::MySQL::RegisterTypes
- Defined in:
- lib/neighbor/mysql.rb
Instance Method Summary collapse
Instance Method Details
#initialize_type_map(m) ⇒ Object
24 25 26 27 |
# File 'lib/neighbor/mysql.rb', line 24 def initialize_type_map(m) super register_vector_type(m) end |
#register_vector_type(m) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/neighbor/mysql.rb', line 29 def register_vector_type(m) m.register_type %r(^vector)i do |sql_type| limit = extract_limit(sql_type) Type::MysqlVector.new(limit: limit) end end |