aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/guff.cr21
-rw-r--r--src/guff/database-pair.cr20
2 files changed, 20 insertions, 21 deletions
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
diff --git a/src/guff/database-pair.cr b/src/guff/database-pair.cr
new file mode 100644
index 0000000..9359fdf
--- /dev/null
+++ b/src/guff/database-pair.cr
@@ -0,0 +1,20 @@
+class Guff::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