Class: Droonga::WatchSchema
- Inherits:
-
Object
- Object
- Droonga::WatchSchema
- Includes:
- Loggable
- Defined in:
- lib/droonga/watch_schema.rb
Instance Method Summary collapse
- #ensure_created ⇒ Object
-
#initialize(context) ⇒ WatchSchema
constructor
A new instance of WatchSchema.
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_created ⇒ Object
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 |