Class: Droonga::WatchSchema

Inherits:
Object
  • Object
show all
Defined in:
lib/droonga/watch_schema.rb

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ WatchSchema

Returns a new instance of WatchSchema.



22
23
24
# File 'lib/droonga/watch_schema.rb', line 22

def initialize(context)
  @context = context
end

Instance Method Details

#ensure_createdObject



26
27
28
29
30
31
32
33
34
# File 'lib/droonga/watch_schema.rb', line 26

def ensure_created
  if @context["Keyword"]
    $log.trace "#{log_tag} skip table creation"
    return
  end
  $log.trace "#{log_tag} ensure_tables: start"
  ensure_tables
  $log.trace "#{log_tag} ensure_tables: done"
end