Skip to content

How can I create a persistent Database with DuckDB JDBC #2376

Answered by Mytherin
david99s asked this question in Q&A
Discussion options

You must be logged in to vote

By default DuckDB is opened in in-memory mode. To open a persistent database you can provide the path to the database file after the colon, e.g.:

Connection conn = DriverManager.getConnection("jdbc:duckdb:/tmp/tpch.db");

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@david99s
Comment options

@Mytherin
Comment options

@david99s
Comment options

@Mytherin
Comment options

@david99s
Comment options

Answer selected by david99s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants