Skip to contents

Create a duckdb connection

Usage

ddbs_create_conn(dbdir = "memory")

Arguments

dbdir

String. Either "tempdir" or "memory". Defaults to "memory".

Value

A duckdb_connection

Examples

if (FALSE) { # interactive()
# load packages
library(duckspatial)

# create a duckdb database in memory (with spatial extension)
conn <- ddbs_create_conn(dbdir = "memory")

# create a duckdb database in disk  (with spatial extension)
conn <- ddbs_create_conn(dbdir = "tempdir")
}