lib/cellect/server/adapters/postgres.rb in cellect-server-1.2.0 vs lib/cellect/server/adapters/postgres.rb in cellect-server-1.3.0
- old
+ new
@@ -63,9 +63,15 @@
row['subject_ids'].map(&:to_i)
end
end
end
+ def status
+ {
+ connected: pg.status == PG::CONNECTION_OK
+ }
+ end
+
def with_pg
@pg.with{ |pg| yield pg }
end
def connection_options