From 0035ec4cf1f60a8e0430cd0b93be4c405444f848 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Tue, 23 Jul 2024 09:39:55 +0800 Subject: [PATCH] docs: mention temporary databases --- USAGE.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/USAGE.md b/USAGE.md index d5342fed3..a2bfed2ff 100644 --- a/USAGE.md +++ b/USAGE.md @@ -11,14 +11,14 @@ Opening a UNIX (Linux, maxOS, etc.) file `/home/leo/work/mydatabase.db` try (Connection connection = DriverManager.getConnection("jdbc:sqlite:/home/leo/work/mydatabase.db")) { /*...*/ } ``` -## How to Use Memory Databases -SQLite supports on-memory database management, which does not create any database files. To use a memory database in your Java code, get the database connection as follows: +## How to Use Memory or Temporary Databases +SQLite supports in-memory databases, which do not create any database files. To use a memory database in your Java code, get the database connection as follows: ```java try (Connection connection = DriverManager.getConnection("jdbc:sqlite::memory:")) { /*...*/ } ``` -And also, you can create memory database as follows: +You can create temporary database as follows: ```java try (Connection connection = DriverManager.getConnection("jdbc:sqlite:")) { /*...*/ } ```