Преглед на файлове

Added docs to base adapter

Andrew Kane преди 8 години
родител
ревизия
a0af33b66f
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      lib/blazer/adapters/base_adapter.rb

+ 5 - 0
lib/blazer/adapters/base_adapter.rb

@@ -8,18 +8,23 @@ module Blazer
       end
 
       def run_statement(statement, comment)
+        # the one required method
       end
 
       def tables
+        [] # optional, but nice to have
       end
 
       def reconnect
+        # optional
       end
 
       def cost(statement)
+        # optional
       end
 
       def explain(statement)
+        # optional
       end
     end
   end