From ebcd06d010367654e88d777cf4721be05d6e690e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 15 Jul 2016 20:05:15 -0400 Subject: refactor database-pair --- src/guff.cr | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/guff.cr') diff --git a/src/guff.cr b/src/guff.cr index e0f97ad..c1acd8b 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -1325,27 +1325,6 @@ module Guff end end - class DatabasePair - getter :ro, :rw - - def initialize( - path : String, - debug : Bool = false - ) - @ro = Database.new( - path: path, - read_only: true, - debug: debug - ) - - @rw = Database.new( - path: path, - read_only: false, - debug: debug - ) - end - end - class Context getter :config, :dbs -- cgit v1.2.3