Sha256: df028d55361058070d8f572efbcb8c5e40e2ea51237d911d6e214734ec852da4

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

require "pg"

module Crtsh
  class DB
    #
    # Returns a connection to certwatch DB
    #
    # @return [PG::Connection]
    #
    def connection
      @connection ||= PG.connect(
        host: "crt.sh",
        user: "guest",
        dbname: "certwatch"
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crtsh-rb-0.3.1 lib/crtsh/db.rb
crtsh-rb-0.3.0 lib/crtsh/db.rb