meta_db_connection: Returns a SQLite Database Connection for the RB3 Package...

View source: R/rb3-package.R

meta_db_connectionR Documentation

Returns a SQLite Database Connection for the RB3 Package Metadata

Description

This function provides a consistent way to connect to the SQLite database used for RB3 package metadata. It returns an existing connection if one is already established and valid, or creates a new connection if needed.

Usage

meta_db_connection()

Details

The function first checks if a valid connection already exists in the package registry. If not, it establishes a new connection to a SQLite database located in the configured database folder and stores this connection in the package registry.

Value

A SQLite connection object for metadata storage

Examples

# Get a connection to the RB3 metadata database
con <- meta_db_connection()


rb3 documentation built on Aug. 8, 2025, 6:20 p.m.