Sha256: edc9af6ec8a21868126ec5741055e7edcdd03f8200f622ee7fc3d5cca8058a42
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
module Timescaledb class ConnectionNotEstablishedError < StandardError; end # @param [String] config The postgres connection string. def establish_connection(config) Connection.instance.config = config end module_function :establish_connection def connection raise ConnectionNotEstablishedError.new unless Connection.instance.connected? Connection.instance end module_function :connection end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timescaledb-0.2.8 | lib/timescaledb/connection_handling.rb |