How to get the location of connected database in Sequel

I’m using Sequel gem, here is the connection code:

DB = Sequel.sqlite("d:\\test.db3")

I’m wondering how can I get the db location, such as DB.location or
DB.database_location?

Hello,

On 21 Οκτ 2013, at 23:18 , Andrew __ [email protected] wrote:

I’m using Sequel gem, here is the connection code:

DB = Sequel.sqlite("d:\\test.db3")

I’m wondering how can I get the db location, such as DB.location or
DB.database_location?


Posted via http://www.ruby-forum.com/.

Databases listen to sockets or network connections. I’m not familiar
with windows so I don’t know which commands you must issue. In unix
environment you usually use ‘lsof’ although the safest best would be
reading the configuration file(!!!), my.cnf in case of mysql.

That’s not ruby related though.

Panagiotis (atmosx) Atmatzidis

email: [email protected]
URL: http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5

Andrew __ wrote in post #1125112:

I’m wondering how can I get the db location, such as DB.location or
DB.database_location?

Try #uri().

http://sequel.rubyforge.org/rdoc-adapters/classes/Sequel/DataObjects/Database.html

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs