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/.
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/.
Hello,
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: atma@convalesco.org
URL: http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5
On 21 Οκτ 2013, at 23:18 , Andrew __ <lists@ruby-forum.com> wrote:
--
The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."
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
--
Posted via http://www.ruby-forum.com/\.