db_connect: Connect to or create a SQLite database

View source: R/database.R

db_connectR Documentation

Connect to or create a SQLite database

Description

Connect to an existing database, or, if the database doesn't exist, create a new one and fill with the appropriate table (internally stored empty df called nc_dbs).

Usage

db_connect(name = paste0("./naturecounts_", Sys.Date()), verbose = TRUE)

Arguments

name

Character. The file path and name (no extension) of the database to create. By default the database is created in the current directory and named "naturecounts_DATE.nc".

Value

A RSQLite connection


BirdStudiesCanada/naturecounts documentation built on June 30, 2023, 1:59 a.m.