Method: Sequel::JDBC::Database#uri
- Defined in:
- lib/sequel/adapters/jdbc.rb
#uri(opts = OPTS) ⇒ Object
The uri for this connection. You can specify the uri using the :uri, :url, or :database options. You don’t need to worry about this if you use Sequel.connect with the JDBC connectrion strings.
365 366 367 368 369 |
# File 'lib/sequel/adapters/jdbc.rb', line 365 def uri(opts=OPTS) opts = @opts.merge(opts) ur = opts[:uri] || opts[:url] || opts[:database] ur =~ /^\Ajdbc:/ ? ur : "jdbc:#{ur}" end |