Class: Droonga::WatchSchema

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

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ WatchSchema

Returns a new instance of WatchSchema.



26
27
28
# File 'lib/droonga/watch_schema.rb', line 26

def initialize(context)
  @context = context
end

Instance Method Details

#ensure_createdObject



30
31
32
33
34
35
36
37
38
# File 'lib/droonga/watch_schema.rb', line 30

def ensure_created
  if @context["Keyword"]
    logger.trace("skip table creation")
    return
  end
  logger.trace("ensure_tables: start")
  ensure_tables
  logger.trace("ensure_tables: done")
end