Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What does ":memory:" mean in the DBI::dbConnect() function?

I am learning how to use the DBI package in R and came across this sample code from the documentation

con <- DBI::dbConnect(RSQLite::SQLite(), dbname = ":memory:")

What does ":memory:" mean here? I understand that dbname = defines the name of the database, but I’ve never seen the format ":string:" in R before.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

From the documentation:

":memory:" is a special path that creates an in-memory database.

If you run ?DBI::dbConnect() and scroll down to the examples, you’ll see this explanation as a comment for the first example code.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading