On Thu, Oct 21, 2021 at 8:56 AM abhijit <m...@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/CADGZSScWG62sNRW%3DQVby2Nn0vdh7mudB7Md_wxQMEgL1dCJFvQ%40mail.gmail.com.

Reply via email to