Thanks a lot, Jeremy On Thursday, October 21, 2021 at 9:36:19 PM UTC+5:30 Jeremy Evans wrote:
> On Thu, Oct 21, 2021 at 8:56 AM abhijit <ma...@abhij.it> wrote: > >> Hi, >> >> For a SQLite connection, is there any way I can find out if the >> connection was for in-memory SQLite or for a file-based SQLite? >> > > You can run: > > DB['PRAGMA database_list'].all > # => [{:seq=>0, :name=>"main", :file=>""}] > > If the :file is the empty string, it should be a memory database. > > Thanks, > Jeremy > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to sequel-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/9785b489-f93e-4687-83ae-dff4fa2a0d9en%40googlegroups.com.